1111 # Enable backtraces for easier debugging
1212 RUST_BACKTRACE : 1
1313 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/
1417
1518jobs :
1619 build :
@@ -21,17 +24,15 @@ jobs:
2124 matrix :
2225 commands : [
2326 " --mini-tests" ,
24- # TODO(antoyo): re-enable those commands when the build with libgccjit 12 is fixed.
25- # "--std-tests",
27+ " --std-tests" ,
2628 # FIXME: re-enable asm tests when GCC can emit in the right syntax.
2729 # "--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" ,
3536 ]
3637
3738 steps :
@@ -85,18 +86,16 @@ jobs:
8586
8687 - name : Build
8788 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
9392 ./clean_all.sh
9493
9594 - name : Prepare dependencies
9695 run : |
9796 git config --global user.email "user@example.com"
9897 git config --global user.name "User"
99- ./y.sh prepare
98+ ./y.sh prepare --libgccjit12-patches
10099
101100 # Compile is a separate step, as the actions-rs/cargo action supports error annotations
102101 - name : Compile
@@ -108,9 +107,9 @@ jobs:
108107 - name : Add more failing tests for GCC 12
109108 run : cat failing-ui-tests12.txt >> failing-ui-tests.txt
110109
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+
111113 - name : Run tests
112114 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