Always install release tools

This commit is contained in:
Félix Saparelli 2022-01-23 13:44:09 +13:00
parent 7fd04573cd
commit f41299d7f9

View file

@ -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: