@@ -31,76 +31,80 @@ jobs:
31
31
env_extra : " TEST_FLAGS='-Cpanic=abort -Zpanic-abort-tests' GCC_EXEC_PREFIX=/usr/lib/gcc/"
32
32
33
33
steps :
34
- - uses : actions/checkout@v3
34
+ - uses : actions/checkout@v3
35
35
36
- # `rustup show` installs from rust-toolchain.toml
37
- - name : Setup rust toolchain
38
- run : rustup show
36
+ # `rustup show` installs from rust-toolchain.toml
37
+ - name : Setup rust toolchain
38
+ run : rustup show
39
39
40
- - name : Setup rust cache
41
- uses : Swatinem/rust-cache@v2
40
+ - name : Setup rust cache
41
+ uses : Swatinem/rust-cache@v2
42
42
43
- - name : Install packages
44
- run : sudo apt-get install ninja-build ripgrep
43
+ - name : Install packages
44
+ run : sudo apt-get install ninja-build ripgrep
45
45
46
- - name : Install libgccjit12
47
- if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
48
- run : sudo apt-get install libgccjit-12-dev
46
+ - name : Install libgccjit12
47
+ if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
48
+ run : sudo apt-get install libgccjit-12-dev
49
49
50
- - name : Setup path to libgccjit
51
- if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
52
- run : |
50
+ - name : Setup path to libgccjit
51
+ if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
52
+ run : |
53
53
echo 'gcc-path = "/usr/lib/gcc/x86_64-linux-gnu/12"' > config.toml
54
54
echo "LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
55
55
echo "LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12" >> $GITHUB_ENV
56
56
57
- - name : Download artifact
58
- if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
59
- run : curl -LO https://github.com/rust-lang/gcc/releases/latest/download/gcc-13.deb
57
+ - name : Download artifact
58
+ if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
59
+ run : curl -LO https://github.com/rust-lang/gcc/releases/latest/download/gcc-13.deb
60
60
61
- - name : Setup path to libgccjit
62
- if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
63
- run : |
61
+ - name : Setup path to libgccjit
62
+ if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
63
+ run : |
64
64
sudo dpkg --force-overwrite -i gcc-13.deb
65
65
echo 'gcc-path = "/usr/lib"' > config.toml
66
66
echo "LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
67
67
echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
68
68
69
- - name : Set env
70
- run : |
71
- echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
69
+ - name : Set env
70
+ run : |
71
+ echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
72
72
73
- # - name: Cache rust repository
73
+ # - name: Cache rust repository
74
74
# uses: actions/cache@v3
75
75
# id: cache-rust-repository
76
76
# with:
77
- # path: rust
78
- # key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
79
-
80
- - name : Git config
81
- run : |
82
- git config --global user.email "[email protected] "
83
- git config --global user.name "User"
84
-
85
- - name : Prepare dependencies
86
- if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
87
- run : ./y.sh prepare --libgccjit12-patches
88
-
89
- - name : Prepare dependencies
90
- if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
91
- run : ./y.sh prepare
92
-
93
- - name : Add more failing tests because the sysroot is not compiled with LTO
94
- run : cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
95
-
96
- - name : Run tests
97
- id : tests
98
- run : |
99
- ${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-rustc ${{ matrix.libgccjit_version.extra }} | tee output_log
100
- rg --text "test result" output_log >> $GITHUB_STEP_SUMMARY
101
-
102
- - name : Run failing ui pattern tests
103
- id : ui-tests
104
- run : |
105
- ${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-ui-pattern-tests ${{ matrix.libgccjit_version.extra }} | tee output_log
106
- rg --text "test result" output_log >> $GITHUB_STEP_SUMMARY
77
+ # path: rust
78
+ # key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
79
+
80
+ - name : Git config
81
+ run : |
82
+ git config --global user.email "[email protected] "
83
+ git config --global user.name "User"
84
+
85
+ - name : Prepare dependencies
86
+ if : matrix.libgccjit_version.gcc == 'libgccjit12.so'
87
+ run : ./y.sh prepare --libgccjit12-patches
88
+
89
+ - name : Prepare dependencies
90
+ if : matrix.libgccjit_version.gcc != 'libgccjit12.so'
91
+ run : ./y.sh prepare
92
+
93
+ - name : Add more failing tests because the sysroot is not compiled with LTO
94
+ run : cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt
95
+
96
+ - name : Run tests
97
+ id : tests
98
+ run : |
99
+ ${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-rustc ${{ matrix.libgccjit_version.extra }} | tee output_log
100
+ rg --text "test result" output_log >> $GITHUB_STEP_SUMMARY
101
+
102
+ - name : Run failing ui pattern tests for ICE
103
+ id : ui-tests
104
+ run : |
105
+ ${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-ui-pattern-tests ${{ matrix.libgccjit_version.extra }} | tee output_log_ui
106
+ if grep -q "the compiler unexpectedly panicked" output_log_ui; then
107
+ echo "Error: 'the compiler unexpectedly panicked' found in output logs. CI Error!!"
108
+ exit 1
109
+ fi
110
+ rg --text "test result" output_log_ui >> $GITHUB_STEP_SUMMARY
0 commit comments