ci: ️ Install dependencies for aarch64-linux and fix typo

This commit is contained in:
Sergio Gasquez 2022-10-07 09:23:43 +02:00
parent 0850cc81f4
commit ddb814ce22

View File

@ -33,6 +33,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
if: matrix.job.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
@ -48,11 +53,11 @@ jobs:
toolchain: stable
args: --release --target ${{ matrix.job.target }}
- name: Compress (Unix)
if: ${{ matrix.job.runs_on != 'windows-latest' }}
if: ${{ matrix.job.os != 'windows-latest' }}
run: zip -j espup-${{ matrix.job.target }}.zip target/${{ matrix.job.target }}/release/espup${{ matrix.job.binary-postfix }}
- name: Compress (Windows)
if: ${{ matrix.job.runs_on == 'windows-latest' }}
if: ${{ matrix.job.os == 'windows-latest' }}
run: Compress-Archive target/${{ matrix.job.target }}/release/espup${{ matrix.job.binary-postfix }} espup-${{ matrix.job.target }}.zip
- uses: svenstaro/upload-release-action@v2