|
38 | 38 |
|
39 | 39 | - uses: dtolnay/rust-toolchain@stable |
40 | 40 | with: |
41 | | - targets: ${{ matrix.platform.target }} |
| 41 | + targets: x86_64-apple-darwin,aarch64-apple-darwin |
42 | 42 |
|
43 | 43 | - name: Install protoc for google-fonts-languages |
44 | 44 | uses: arduino/setup-protoc@v3 |
@@ -78,27 +78,33 @@ jobs: |
78 | 78 | if: matrix.platform.target == 'x86_64-apple-darwin' |
79 | 79 | run: pipx run twine check dist/*.tar.gz |
80 | 80 |
|
81 | | - - name: Archive binary |
82 | | - if: matrix.platform.os != 'windows-latest' |
| 81 | + - name: Build native binaries (macOS) |
| 82 | + if: matrix.platform.os == 'macos-latest' |
83 | 83 | 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 |
87 | 86 |
|
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' |
90 | 89 | 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 |
93 | 92 | cd - |
94 | 93 |
|
95 | 94 | - name: Archive binary (macOS aarch64) |
96 | | - if: matrix.platform.os == 'macos-latest' |
| 95 | + if: matrix.platform.target == 'x86_64-apple-darwin' |
97 | 96 | run: | |
98 | 97 | cd target/aarch64-apple-darwin/release |
99 | 98 | tar czvf ../../../diffenator3-aarch64-apple-darwin.tar.gz diffenator3 diff3proof |
100 | 99 | cd - |
101 | 100 |
|
| 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 | +
|
102 | 108 | - name: Upload wheel artifacts |
103 | 109 | uses: actions/upload-artifact@v4 |
104 | 110 | with: |
|
0 commit comments