Skip to content

Commit

Permalink
fix: set default toolchain to matrix.build.target
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Oct 24, 2024
1 parent e85200e commit 8d1a9e9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ jobs:
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}

- name: Add rust toolchain
run: rustup target add ${{ matrix.build.target }}
run: |
rustup target add ${{ matrix.build.target }}
rustup set default-host ${{ matrix.build.target }}
- name: Install build deps
if: ${{ matrix.build.target == 'x86_64-unknown-linux-musl'}}
Expand All @@ -124,15 +126,6 @@ jobs:
if: ${{ matrix.build.target == 'aarch64-unknown-linux-musl'}}
run: sudo apt-get install -y musl-tools

# FIXME: not sure what deps are missing on windows
#- name: Install build deps
# if: ${{ matrix.build.target == 'x86_64-pc-windows-msvc'}}
# run: apt install -y

#- name: Install build deps
# if: ${{ matrix.build.target == 'x86_64-pc-windows-gnu'}}
# run: apt install -y

- id: build
run: |
mkdir -p build && cd build
Expand Down

0 comments on commit 8d1a9e9

Please sign in to comment.