From f41299d7f98c7994c0aee284994b95db4715c68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sun, 23 Jan 2022 13:44:09 +1300 Subject: [PATCH] Always install release tools --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96c21437..11383a29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,17 +92,22 @@ jobs: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} - - uses: actions/cache@v2 - if: startsWith(matrix.name, 'linux-') - with: - path: ~/.cargo/bin - key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/release.yml') }} + - name: Add musl tools + run: sudo apt install -y musl musl-dev musl-tools + if: endsWith(matrix.target, '-musl') + - name: Add aarch-gnu tools + run: sudo apt install -y gcc-aarch64-linux-gnu + if: startsWith(matrix.target, 'aarch64-unknown-linux') + - name: Add arm7hf-gnu tools + run: sudo apt install -y gcc-arm-linux-gnueabihf + if: startsWith(matrix.target, 'armv7-unknown-linux-gnueabihf') + - name: Install cargo-deb if: startsWith(matrix.name, 'linux-') - run: which cargo-deb || cargo install cargo-deb --version 1.34.2 --locked + run: cargo install cargo-deb --version 1.35.0 --locked - name: Install cargo-generate-rpm if: startsWith(matrix.name, 'linux-') - run: which cargo-generate-rpm || cargo install cargo-generate-rpm --version 0.6.0 --locked + run: cargo install cargo-generate-rpm --version 0.6.0 --locked - uses: actions-rs/toolchain@v1 with: