6
6
windows :
7
7
name : " [Windows] Build selenium-manager"
8
8
runs-on : windows-latest
9
+ env :
10
+ RUSTFLAGS : ' -C target-feature=+crt-static'
9
11
steps :
10
12
- name : " Checkout project"
11
13
uses : actions/checkout@v3
12
- - name : " Build release "
14
+ - name : " Update Rust "
13
15
run : |
14
16
rustup update
17
+ rustc -vV
18
+ - name : " Build release"
19
+ run : |
15
20
cd rust
16
- cargo build --release
21
+ cargo build --release --target x86_64-pc-windows-msvc
17
22
- name : " Upload binary"
18
23
uses : actions/upload-artifact@v3
19
24
with :
20
25
name : selenium-manager_windows-x64
21
- path : rust/target/release/selenium-manager.exe
26
+ path : rust/target/x86_64-pc-windows-msvc/ release/selenium-manager.exe
22
27
retention-days : 6
23
28
24
29
linux :
25
30
name : " [Linux] Build selenium-manager"
26
31
runs-on : ubuntu-latest
32
+ env :
33
+ RUSTFLAGS : ' -C target-feature=+crt-static'
27
34
steps :
28
35
- name : " Checkout project"
29
36
uses : actions/checkout@v3
30
- - name : " Build release "
37
+ - name : " Update Rust "
31
38
run : |
32
39
rustup update
40
+ rustc -vV
41
+ - name : " Build release"
42
+ run : |
33
43
cd rust
34
- cargo build --release
44
+ cargo build --release --target x86_64-unknown-linux-gnu
35
45
- name : " Tar binary (to keep executable permission)"
36
46
run : |
37
- cd rust/target/release
38
- tar -cvf ../../../selenium-manager.tar selenium-manager
47
+ cd rust/target/x86_64-unknown-linux-gnu/ release
48
+ tar -cvf ../../../../ selenium-manager.tar selenium-manager
39
49
- name : " Upload binary"
40
50
uses : actions/upload-artifact@v3
41
51
with :
@@ -46,18 +56,23 @@ jobs:
46
56
macos :
47
57
name : " [macOS] Build selenium-manager"
48
58
runs-on : macos-latest
59
+ env :
60
+ RUSTFLAGS : ' -C target-feature=+crt-static'
49
61
steps :
50
62
- name : " Checkout project"
51
63
uses : actions/checkout@v3
52
- - name : " Build release "
64
+ - name : " Update Rust "
53
65
run : |
54
66
rustup update
67
+ rustc -vV
68
+ - name : " Build release"
69
+ run : |
55
70
cd rust
56
- cargo build --release
71
+ cargo build --release --target x86_64-apple-darwin
57
72
- name : " Tar binary (to keep executable permission)"
58
73
run : |
59
- cd rust/target/release
60
- tar -cvf ../../../selenium-manager.tar selenium-manager
74
+ cd rust/target/x86_64-apple-darwin/ release
75
+ tar -cvf ../../../../ selenium-manager.tar selenium-manager
61
76
- name : " Upload binary"
62
77
uses : actions/upload-artifact@v3
63
78
with :
0 commit comments