File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
- name : build- selenium-manager
1
+ name : Build selenium-manager
2
2
3
3
on : workflow_dispatch
4
4
61
61
retention-days : 6
62
62
63
63
macos64 :
64
- name : " [macOS x64] Build selenium-manager"
64
+ name : " [macOS x64/arm64 ] Build selenium-manager"
65
65
runs-on : macos-latest
66
66
env :
67
67
RUSTFLAGS : ' -Ctarget-feature=+crt-static'
@@ -71,18 +71,30 @@ jobs:
71
71
- name : " Update Rust"
72
72
run : |
73
73
rustup update
74
+ rustup target add aarch64-apple-darwin
74
75
rustc -vV
75
- - name : " Build release "
76
+ - name : " Build x64 "
76
77
run : |
77
78
cd rust
78
79
cargo build --release --target x86_64-apple-darwin
80
+ - name : " Build arm64"
81
+ run : |
82
+ cd rust
83
+ cargo build --release --target aarch64-apple-darwin
84
+ - name : " Build universal"
85
+ run : |
86
+ cd rust
87
+ lipo -create \
88
+ -output target/selenium-manager \
89
+ target/aarch64-apple-darwin/release/selenium-manager \
90
+ target/x86_64-apple-darwin/release/selenium-manager
79
91
- name : " Tar binary (to keep executable permission)"
80
92
run : |
81
- cd rust/target/x86_64-apple-darwin/release
82
- tar -cvf ../../../../ selenium-manager.tar selenium-manager
93
+ cd rust/target
94
+ tar -cvf ../../selenium-manager.tar selenium-manager
83
95
- name : " Upload binary"
84
96
uses : actions/upload-artifact@v3
85
97
with :
86
- name : selenium-manager_macos-x64
98
+ name : selenium-manager_macos-universal
87
99
path : selenium-manager.tar
88
- retention-days : 6
100
+ retention-days : 6
You can’t perform that action at this time.
0 commit comments