Skip to content

Commit

Permalink
fixup: failed to build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lovebaihezi committed Sep 20, 2024
1 parent a8cc2dd commit 330018a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: ${{ env.use_git_lfs }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: wasm32-unknown-unknown
- name: install wasm-bindgen-cli
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: ${{ env.use_git_lfs }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: x86_64-unknown-linux-gnu
- name: install dependencies
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: ${{ env.use_git_lfs }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: x86_64-pc-windows-msvc

Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: ${{ env.use_git_lfs }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: x86_64-apple-darwin
- name: Environment Setup
Expand All @@ -180,6 +180,8 @@ jobs:
- name: Build
run: |
cargo clean
cargo build -Zbuild-std
cargo build --release --target x86_64-apple-darwin
- name: Prepare Package
Expand Down Expand Up @@ -216,7 +218,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: ${{ env.use_git_lfs }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: aarch64-apple-darwin
- name: Environment
Expand Down

0 comments on commit 330018a

Please sign in to comment.