mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Add a release-check action to verify release tarballs have all the necessary parts (#3472)
This commit is contained in:
parent
977a8f3853
commit
99827de3dd
1 changed files with 28 additions and 0 deletions
28
.github/workflows/release-check.yaml
vendored
Normal file
28
.github/workflows/release-check.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: release-tests
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
check-tarball:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache cargo registry
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry
|
||||||
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: "stable"
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: make a release tarball and build from it
|
||||||
|
run: |
|
||||||
|
cmake -S. -Bbuild &&
|
||||||
|
make -Cbuild package_source &&
|
||||||
|
tar -xf build/task-*.tar.gz &&
|
||||||
|
cd task-*.*.* &&
|
||||||
|
cmake -S. -Bbuild &&
|
||||||
|
cmake --build build --target task_executable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue