Skip to content

Commit 9a4ff2b

Browse files
committed
fix: build native binaries instead of cross-compiling (ort-sys limitation)
1 parent 1e78a70 commit 9a4ff2b

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,25 @@ on:
77
jobs:
88
build:
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
include:
12-
- target: aarch64-apple-darwin
13-
os: macos-14
13+
- os: macos-14
1414
archive: engraph-macos-arm64.tar.gz
15-
- target: x86_64-apple-darwin
16-
os: macos-latest
17-
archive: engraph-macos-x86_64.tar.gz
18-
- target: x86_64-unknown-linux-gnu
19-
os: ubuntu-latest
15+
- os: ubuntu-latest
2016
archive: engraph-linux-x86_64.tar.gz
2117
runs-on: ${{ matrix.os }}
2218
permissions:
2319
contents: write
2420
steps:
2521
- uses: actions/checkout@v4
2622
- uses: dtolnay/rust-toolchain@stable
27-
with:
28-
targets: ${{ matrix.target }}
29-
- run: cargo build --release --target ${{ matrix.target }}
23+
- run: cargo build --release
3024
- name: Archive binary
3125
run: |
32-
cd target/${{ matrix.target }}/release
33-
tar czf ../../../${{ matrix.archive }} engraph
34-
cd ../../..
26+
cd target/release
27+
tar czf ../../${{ matrix.archive }} engraph
28+
cd ../..
3529
- uses: softprops/action-gh-release@v2
3630
with:
3731
files: ${{ matrix.archive }}

0 commit comments

Comments
 (0)