mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 15:14:56 +00:00
ci: ⚡️ Install dependencies for aarch64-linux and fix typo
This commit is contained in:
parent
0850cc81f4
commit
ddb814ce22
9
.github/workflows/cd.yaml
vendored
9
.github/workflows/cd.yaml
vendored
@ -33,6 +33,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Install Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@ -48,11 +53,11 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
args: --release --target ${{ matrix.job.target }}
|
args: --release --target ${{ matrix.job.target }}
|
||||||
- name: Compress (Unix)
|
- 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 }}
|
run: zip -j espup-${{ matrix.job.target }}.zip target/${{ matrix.job.target }}/release/espup${{ matrix.job.binary-postfix }}
|
||||||
|
|
||||||
- name: Compress (Windows)
|
- 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
|
run: Compress-Archive target/${{ matrix.job.target }}/release/espup${{ matrix.job.binary-postfix }} espup-${{ matrix.job.target }}.zip
|
||||||
|
|
||||||
- uses: svenstaro/upload-release-action@v2
|
- uses: svenstaro/upload-release-action@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user