Update release.yaml

This commit is contained in:
Erèbe - Romain Gerard 2023-11-03 22:08:06 +01:00 committed by GitHub
parent e1a77443c1
commit ba7e857157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ jobs:
steps: steps:
- name: Install package for linux - name: Install package for linux
if: contains(matrix.platform.target, 'linux') if: contains(matrix.platform.target, 'linux')
run: sudo apt install musl-tools libunwind8 android-libunwind run: sudo apt install musl-tools
- name: Install package for Android - name: Install package for Android
if: contains(matrix.platform.target, 'android') if: contains(matrix.platform.target, 'android')
@ -76,7 +76,7 @@ jobs:
# Linux & Windows # Linux & Windows
- name: Install rust toolchain - name: Install rust toolchain
if: ${{ !contains(matrix.platform.target, 'apple') }} if: ${{ !contains(matrix.platform.target, 'apple') && !contains(matrix.platform.target, 'android') }}
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
# We setup Rust toolchain and the desired target # We setup Rust toolchain and the desired target
@ -86,6 +86,17 @@ jobs:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
components: rustfmt, clippy components: rustfmt, clippy
- name: Install rust toolchain
if: ${{ !contains(matrix.platform.target, 'android') }}
uses: actions-rs/toolchain@v1
with:
# We setup Rust toolchain and the desired target
profile: minimal
toolchain: 1.67.0
override: true
target: ${{ matrix.platform.target }}
components: rustfmt, clippy
- name: Build ${{ matrix.platform.name }} binary - name: Build ${{ matrix.platform.name }} binary
if: ${{ !contains(matrix.platform.target, 'apple') }} if: ${{ !contains(matrix.platform.target, 'apple') }}
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1