Skip to content

Commit 342bb64

Browse files
committed
fix py build targets
1 parent 41d9ae7 commit 342bb64

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- uses: dtolnay/rust-toolchain@stable
4040
with:
41-
targets: ${{ matrix.platform.target }}
41+
targets: x86_64-apple-darwin,aarch64-apple-darwin
4242

4343
- name: Install protoc for google-fonts-languages
4444
uses: arduino/setup-protoc@v3
@@ -78,27 +78,33 @@ jobs:
7878
if: matrix.platform.target == 'x86_64-apple-darwin'
7979
run: pipx run twine check dist/*.tar.gz
8080

81-
- name: Archive binary
82-
if: matrix.platform.os != 'windows-latest'
81+
- name: Build native binaries (macOS)
82+
if: matrix.platform.os == 'macos-latest'
8383
run: |
84-
cd target/${{ matrix.platform.target }}/release
85-
tar czvf ../../../${{ matrix.platform.archive }} diffenator3 diff3proof
86-
cd -
84+
cargo build --release --target x86_64-apple-darwin
85+
cargo build --release --target aarch64-apple-darwin
8786
88-
- name: Archive binary (windows)
89-
if: matrix.platform.os == 'windows-latest'
87+
- name: Archive binary (macOS x86_64)
88+
if: matrix.platform.target == 'x86_64-apple-darwin'
9089
run: |
91-
cd target/${{ matrix.platform.target }}/release
92-
7z a ../../../${{ matrix.platform.archive }} diffenator3.exe diff3proof.exe
90+
cd target/x86_64-apple-darwin/release
91+
tar czvf ../../../${{ matrix.platform.archive }} diffenator3 diff3proof
9392
cd -
9493
9594
- name: Archive binary (macOS aarch64)
96-
if: matrix.platform.os == 'macos-latest'
95+
if: matrix.platform.target == 'x86_64-apple-darwin'
9796
run: |
9897
cd target/aarch64-apple-darwin/release
9998
tar czvf ../../../diffenator3-aarch64-apple-darwin.tar.gz diffenator3 diff3proof
10099
cd -
101100
101+
- name: Archive binary (windows)
102+
if: matrix.platform.os == 'windows-latest'
103+
run: |
104+
cd target/${{ matrix.platform.target }}/release
105+
7z a ../../../${{ matrix.platform.archive }} diffenator3.exe diff3proof.exe
106+
cd -
107+
102108
- name: Upload wheel artifacts
103109
uses: actions/upload-artifact@v4
104110
with:

0 commit comments

Comments
 (0)