File tree 4 files changed +30
-37
lines changed 4 files changed +30
-37
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,40 @@ name: Rust
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
6
5
pull_request :
7
- branches : [ master ]
8
6
9
7
env :
10
8
CARGO_TERM_COLOR : always
11
9
12
10
jobs :
13
11
build :
14
- runs-on : windows-latest
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os : ["windows-latest", "ubuntu-latest", "macos-latest"]
16
+ runs-on : ${{ matrix.os }}
15
17
steps :
16
- - uses : actions/checkout@v2
17
- - name : Install latest nightly
18
- uses : actions-rs/toolchain@v1
19
- with :
20
- toolchain : 1.45.0
21
- default : true
18
+ - uses : actions/checkout@v3
19
+ - uses : dtolnay/rust-toolchain@stable
22
20
- name : Run tests
21
+ if : contains(matrix.os, 'windows')
23
22
run : cargo test --verbose --features "egl build_dlls"
23
+ - name : Run test (POSIX)
24
+ if : ${{ !contains(matrix.os, 'windows') }}
25
+ run : |
26
+ cargo test --verbose
27
+ cargo test --verbose --features egl
24
28
29
+ build_result :
30
+ name : homu build finished
31
+ runs-on : ubuntu-latest
32
+ needs :
33
+ - " build"
34
+
35
+ steps :
36
+ - name : Mark the job as successful
37
+ run : exit 0
38
+ if : success()
39
+ - name : Mark the job as unsuccessful
40
+ run : exit 1
41
+ if : " !success()"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ fn build_egl(target: &str) {
124
124
assert ! ( status. unwrap( ) . success( ) ) ;
125
125
}
126
126
127
+ build. link_lib_modifier ( "-whole-archive" ) ;
128
+
127
129
// Build lib.
128
130
build. compile ( "EGL" ) ;
129
131
}
@@ -187,6 +189,8 @@ fn build_angle() {
187
189
. flag_if_supported ( "-arch:SSE2" ) ; // MSVC
188
190
}
189
191
192
+ build. link_lib_modifier ( "-whole-archive" ) ;
193
+
190
194
build. compile ( "angle" ) ;
191
195
192
196
if egl {
You can’t perform that action at this time.
0 commit comments