From 99827de3dd62b90a6aa6332a7ae1092ae6086206 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 2 Jun 2024 17:44:04 -0400 Subject: [PATCH] Add a release-check action to verify release tarballs have all the necessary parts (#3472) --- .github/workflows/release-check.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release-check.yaml diff --git a/.github/workflows/release-check.yaml b/.github/workflows/release-check.yaml new file mode 100644 index 000000000..e9cf424ba --- /dev/null +++ b/.github/workflows/release-check.yaml @@ -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 +