@@ -25,7 +25,6 @@ concurrency:
25
25
26
26
env :
27
27
CARGO_TERM_COLOR : always
28
- WORKSPACE_ROOT_MANIFEST_DIR : " /home/runner/work/std/std"
29
28
AWS_LC_SYS_PREBUILT_NASM : 1
30
29
PLUGIN_REPOSITORY : " std"
31
30
PLUGINS : " arithmetic base color comparison connector date-time flow logical metadata numeric random result state string taxonomy trigger value"
@@ -228,7 +227,14 @@ jobs:
228
227
uses : dtolnay/rust-toolchain@master
229
228
with :
230
229
toolchain : stable
231
- target : ${{ matrix.target == 'universal-apple-darwin' && 'aarch64-apple-darwin,x86_64-apple-darwin' || matrix.target }}
230
+ target : ${{ matrix.target }}
231
+ if : matrix.target != 'universal-apple-darwin'
232
+ - name : Install rust toolchain
233
+ uses : dtolnay/rust-toolchain@master
234
+ with :
235
+ toolchain : stable
236
+ targets : " x86_64-apple-darwin, aarch64-apple-darwin"
237
+ if : matrix.target == 'universal-apple-darwin'
232
238
- name : Install bindgen-cli
233
239
uses : taiki-e/cache-cargo-install-action@v2
234
240
with :
@@ -255,6 +261,21 @@ jobs:
255
261
matrix.target == 'riscv64gc-unknown-linux-gnu'
256
262
- name : Build Dynamic Link Libraries
257
263
run : cargo build --release --target ${{ matrix.target }}
264
+ if : matrix.target != 'universal-apple-darwin'
265
+ - name : Build Dynamic Link Libraries (universal-apple-darwin)
266
+ run : |
267
+ cargo build --release --target x86_64-apple-darwin
268
+ cargo build --release --target aarch64-apple-darwin
269
+ mkdir -p target/universal-apple-darwin/release
270
+ for PLUGIN in ${{env.PLUGINS}}; do
271
+ lipo \
272
+ -create \
273
+ target/x86_64-apple-darwin/release/${{matrix.prefix}}reactive_graph_${{env.PLUGIN_REPOSITORY}}_${PLUGIN//-/_}${{matrix.extension}} \
274
+ target/aarch64-apple-darwin/release/${{matrix.prefix}}reactive_graph_${{env.PLUGIN_REPOSITORY}}_${PLUGIN//-/_}${{matrix.extension}} \
275
+ -output \
276
+ target/universal-apple-darwin/release/${{matrix.prefix}}reactive_graph_${{env.PLUGIN_REPOSITORY}}_${PLUGIN//-/_}${{matrix.extension}}
277
+ done
278
+ if : matrix.target == 'universal-apple-darwin'
258
279
- name : Create Release Archive
259
280
id : archive
260
281
uses : ksm2/archive-action@v1
@@ -392,7 +413,7 @@ jobs:
392
413
run : |
393
414
for PLUGIN in ${{env.PLUGINS}}; do
394
415
# It's important to change into the plugin directory and building each package
395
- cd ${{env.WORKSPACE_ROOT_MANIFEST_DIR }}/plugins/$PLUGIN/crates/plugin
416
+ cd " ${{ github.workspace }}/plugins/$PLUGIN"
396
417
cargo deb -p reactive-graph-${{env.PLUGIN_REPOSITORY}}-$PLUGIN --target=${{ matrix.target }} --deb-revision ${{steps.tag.outputs.tag}}
397
418
done
398
419
env :
@@ -402,7 +423,7 @@ jobs:
402
423
run : |
403
424
for PLUGIN in ${{env.PLUGINS}}; do
404
425
# It's important to change into the plugin directory and building each package
405
- cd ${{env.WORKSPACE_ROOT_MANIFEST_DIR }}/plugins/$PLUGIN/crates/plugin
426
+ cd " ${{ github.workspace }}/plugins/$PLUGIN"
406
427
cargo deb -p reactive-graph-${{env.PLUGIN_REPOSITORY}}-$PLUGIN --target=${{ matrix.target }} --deb-revision nightly
407
428
done
408
429
env :
0 commit comments