@@ -25,18 +25,23 @@ jobs:
25
25
if : " github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
26
26
uses : ' ./.github/workflows/tests.yaml'
27
27
28
- cross :
28
+ cross_build :
29
+ name : Cross Build Only
29
30
if : " github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
30
31
timeout-minutes : 30
31
- name : Cross compile
32
32
runs-on : [self-hosted, linux, X64]
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
36
36
target :
37
- - i686-unknown-linux-gnu
37
+ # cross tests are currently broken vor armv7 and aarch64
38
+ # see https://github.com/cross-rs/cross/issues/1311
38
39
- armv7-linux-androideabi
39
40
- aarch64-linux-android
41
+ # Freebsd execution fails in cross
42
+ # - i686-unknown-freebsd # Linking fails :/
43
+ - x86_64-unknown-freebsd
44
+ - x86_64-unknown-netbsd
40
45
steps :
41
46
- name : Checkout
42
47
uses : actions/checkout@v4
@@ -59,15 +64,39 @@ jobs:
59
64
# cross tests are currently broken vor armv7 and aarch64
60
65
# see https://github.com/cross-rs/cross/issues/1311. So on
61
66
# those platforms we only build but do not run tests.
62
- if : matrix.target != 'i686-unknown-linux-gnu'
63
67
run : cross build --all --target ${{ matrix.target }}
64
68
env :
65
69
RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG'}}
66
70
71
+ cross_test :
72
+ name : Cross Test
73
+ if : " github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
74
+ timeout-minutes : 30
75
+ runs-on : [self-hosted, linux, X64]
76
+ strategy :
77
+ fail-fast : false
78
+ matrix :
79
+ target :
80
+ - i686-unknown-linux-gnu
81
+ steps :
82
+ - name : Checkout
83
+ uses : actions/checkout@v4
84
+ with :
85
+ submodules : recursive
86
+
87
+ - name : Install rust stable
88
+ uses : dtolnay/rust-toolchain@stable
89
+
90
+ - name : Cleanup Docker
91
+ continue-on-error : true
92
+ run : |
93
+ docker kill $(docker ps -q)
94
+
95
+ - name : Install cross
96
+ # See https://github.com/cross-rs/cross/issues/1222
97
+ run : cargo install cross --git https://github.com/cross-rs/cross
98
+
67
99
- name : test
68
- # cross tests are currently broken vor armv7 and aarch64
69
- # see https://github.com/cross-rs/cross/issues/1311
70
- if : matrix.target == 'i686-unknown-linux-gnu'
71
100
run : cross test --all --target ${{ matrix.target }} -- --test-threads=12
72
101
env :
73
102
RUST_LOG : ${{ runner.debug && 'TRACE' || 'DEBUG' }}
0 commit comments