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: