11
11
# Enable backtraces for easier debugging
12
12
RUST_BACKTRACE : 1
13
13
TEST_FLAGS : " -Cpanic=abort -Zpanic-abort-tests"
14
+ # FIXME(antoyo): we need to set GCC_EXEC_PREFIX so that the linker can find the linker plugin.
15
+ # Not sure why it's not found otherwise.
16
+ GCC_EXEC_PREFIX : /usr/lib/gcc/
14
17
15
18
jobs :
16
19
build :
@@ -21,17 +24,15 @@ jobs:
21
24
matrix :
22
25
commands : [
23
26
" --mini-tests" ,
24
- # TODO(antoyo): re-enable those commands when the build with libgccjit 12 is fixed.
25
- # "--std-tests",
27
+ " --std-tests" ,
26
28
# FIXME: re-enable asm tests when GCC can emit in the right syntax.
27
29
# "--asm-tests",
28
- # "--test-libcore",
29
- # "--extended-rand-tests",
30
- # "--extended-regex-example-tests",
31
- # "--extended-regex-tests",
32
- # "--test-successful-rustc --nb-parts 2 --current-part 0",
33
- # "--test-successful-rustc --nb-parts 2 --current-part 1",
34
- # "--test-failing-rustc",
30
+ " --test-libcore" ,
31
+ " --extended-rand-tests" ,
32
+ " --extended-regex-example-tests" ,
33
+ " --extended-regex-tests" ,
34
+ " --test-successful-rustc --nb-parts 2 --current-part 0" ,
35
+ " --test-successful-rustc --nb-parts 2 --current-part 1" ,
35
36
]
36
37
37
38
steps :
@@ -85,18 +86,16 @@ jobs:
85
86
86
87
- name : Build
87
88
run : |
88
- ./y.sh prepare --only-libcore
89
- # TODO(antoyo): build the sysroot when the build with libgccjit 12 is fixed.
90
- #./y.sh build --no-default-features
91
- # TODO(antoyo): run the tests when we can build the sysroot with libgccjit 12.
92
- #cargo test --no-default-features
89
+ ./y.sh prepare --only-libcore --libgccjit12-patches
90
+ ./y.sh build --no-default-features --sysroot-panic-abort
91
+ cargo test --no-default-features
93
92
./clean_all.sh
94
93
95
94
- name : Prepare dependencies
96
95
run : |
97
96
git config --global user.email "[email protected] "
98
97
git config --global user.name "User"
99
- ./y.sh prepare
98
+ ./y.sh prepare --libgccjit12-patches
100
99
101
100
# Compile is a separate step, as the actions-rs/cargo action supports error annotations
102
101
- name : Compile
@@ -108,9 +107,9 @@ jobs:
108
107
- name : Add more failing tests for GCC 12
109
108
run : cat failing-ui-tests12.txt >> failing-ui-tests.txt
110
109
110
+ - name : Add more failing tests because the sysroot is not compiled with LTO
111
+ run : cat failing-non-lto-tests.txt >> failing-ui-tests.txt
112
+
111
113
- name : Run tests
112
114
run : |
113
- # TODO(antoyo): add --build-sysroot when the build with libgccjit 12 is fixed.
114
- # FIXME(antoyo): we need to set GCC_EXEC_PREFIX so that the linker can find the linker plugin.
115
- # Not sure why it's not found otherwise.
116
- GCC_EXEC_PREFIX=/usr/lib/gcc/ ./test.sh --release --clean ${{ matrix.commands }} --no-default-features
115
+ ./test.sh --release --clean --build-sysroot ${{ matrix.commands }} --no-default-features
0 commit comments