Skip to content

Commit

Permalink
fix building for different targets (fix #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed May 8, 2024
1 parent 7cf04bc commit 35546b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
build: cargo build --release
build: cargo build --target=${{ matrix.settings.target }} --release
- host: macos-14
target: aarch64-apple-darwin
build: |
Expand All @@ -25,16 +25,16 @@ jobs:
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
cargo build --release
cargo build --target=${{ matrix.settings.target }} --release
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
build: cargo build --release
build: cargo build --target=${{ matrix.settings.target }} --release
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
build: cargo build --release
build: cargo build --target=${{ matrix.settings.target }} --release
- host: windows-latest
target: x86_64-pc-windows-gnu
build: cargo build --release
build: cargo build --target=${{ matrix.settings.target }} --release
name: ${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down Expand Up @@ -65,6 +65,7 @@ jobs:
ls -l
cd ..
- name: Pack
if: matrix.settings.host == 'windows-latest'
shell: pwsh
run: |
if (Test-Path dist) {
Expand Down

0 comments on commit 35546b3

Please sign in to comment.