File tree 3 files changed +33
-7
lines changed
3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change @@ -221,19 +221,25 @@ jobs:
221
221
file : ${{ env.samedec_target_exe }}
222
222
overwrite : true
223
223
224
- # MacOS build, on whatever machine github has available
224
+ # MacOS build, aarch64
225
225
release_macos :
226
226
runs-on : macos-latest
227
227
228
228
needs : vendor_sources
229
229
230
+ strategy :
231
+ matrix :
232
+ include :
233
+ - target : aarch64-apple-darwin
234
+ - target : x86_64-apple-darwin
235
+
230
236
env :
231
- CARGO_BUILD_TARGET : aarch64-apple-darwin
237
+ CARGO_BUILD_TARGET : ${{ matrix.target }}
232
238
CARGO_NET_OFFLINE : " true"
233
239
CARGO_INSTALL_ROOT : " install/"
234
240
RUSTFLAGS : ' -C strip=symbols'
235
241
samedec_exe : ' install/bin/samedec'
236
- samedec_target_exe : install/bin/samedec-aarch64-apple-darwin
242
+ samedec_target_exe : install/bin/samedec-${{ matrix.target }}
237
243
238
244
steps :
239
245
- uses : actions/checkout@v3
@@ -254,6 +260,7 @@ jobs:
254
260
- name : Build
255
261
run : |
256
262
mkdir -p 'install' &&
263
+ rustup target add "$CARGO_BUILD_TARGET" &&
257
264
cargo fetch --locked &&
258
265
cargo build --offline --tests --frozen --release --workspace
259
266
Original file line number Diff line number Diff line change @@ -165,9 +165,14 @@ jobs:
165
165
- name : Run integration tests
166
166
shell : bash
167
167
run : |
168
- pushd sample
169
- ./test.sh
170
- popd
168
+ pushd sample && ./test.sh && popd
169
+
170
+ - name : Cross-compile macOS target for x86_64 (apple only)
171
+ shell : bash
172
+ if : ${{ matrix.os == 'macos-latest' }}
173
+ run : |
174
+ rustup target add x86_64-apple-darwin && \
175
+ cargo test --frozen -p samedec --verbose --target=x86_64-apple-darwin
171
176
172
177
# Linux builds within our containerized release environment
173
178
test_samedec_containerized :
Original file line number Diff line number Diff line change @@ -44,14 +44,28 @@ alerts.
44
44
45
45
Binary builds are available on the
46
46
[ releases] ( https://github.com/cbs228/sameold/releases ) page for a variety of
47
- platforms. Linux binaries are currently built against glibc 2.28 and should be
47
+ platforms, including:
48
+
49
+ * ` aarch64-apple-darwin `
50
+ * ` aarch64-unknown-linux-gnu `
51
+ * ` armv7-unknown-linux-gnueabihf `
52
+ * ` i686-unknown-linux-gnu `
53
+ * ` x86_64-pc-windows-msvc `
54
+ * ` x86_64-unknown-linux-gnu `
55
+
56
+ GNU/Linux binaries are currently built for glibc 2.28 and should be
48
57
portable to most distros.
49
58
50
59
### Building
51
60
52
61
You will need a working
53
62
[ rust toolchain] ( https://www.rust-lang.org/learn/get-started ) .
54
63
64
+ ``` bash
65
+ cargo install samedec
66
+ samedec --help
67
+ ```
68
+
55
69
To build and install binaries from this repository, run
56
70
57
71
``` bash
You can’t perform that action at this time.
0 commit comments