Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Redrrx authored Jul 28, 2024
1 parent 2cd304a commit 0b30277
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
sudo apt-get install -y musl-tools musl-dev gcc-multilib
- name: Set up Cargo config
shell: bash
run: |
Expand All @@ -38,7 +37,7 @@ jobs:
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "target-feature=+crt-static"]
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-lgcc", "-C", "link-arg=-static-libgcc"]
linker = "musl-gcc"
[target.x86_64-apple-darwin]
rustflags = ["-C", "target-feature=-crt-static"]
Expand Down

0 comments on commit 0b30277

Please sign in to comment.