4
4
- push
5
5
- pull_request
6
6
7
+ env :
8
+ # Enable backtraces for easier debugging
9
+ RUST_BACKTRACE : 1
10
+
7
11
jobs :
8
12
build :
9
13
runs-on : ubuntu-latest
10
14
11
15
strategy :
12
16
fail-fast : false
13
17
matrix :
14
- libgccjit_version : ["libgccjit.so", "libgccjit_without_int128.so", "libgccjit12.so"]
18
+ libgccjit_version :
19
+ - { gcc: "libgccjit.so", extra: "" }
20
+ - { gcc: "libgccjit_without_int128.so", extra: "" }
21
+ - { gcc: "libgccjit12.so", extra: "--no-default-features" }
15
22
16
23
steps :
17
24
- uses : actions/checkout@v2
28
35
uses : dawidd6/action-download-artifact@v2
29
36
with :
30
37
workflow : main.yml
31
- name : ${{ matrix.libgccjit_version }}
38
+ name : ${{ matrix.libgccjit_version.gcc }}
32
39
path : gcc-build
33
40
repo : antoyo/gcc
34
41
search_artifacts : true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
@@ -78,19 +85,10 @@ jobs:
78
85
key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
79
86
80
87
- name : Build
81
- if : matrix.libgccjit_version != 'libgccjit12.so'
82
- run : |
83
- ./prepare_build.sh
84
- ./build.sh
85
- cargo test
86
- ./clean_all.sh
87
-
88
- - name : Build
89
- if : matrix.libgccjit_version == 'libgccjit12.so'
90
88
run : |
91
89
./prepare_build.sh
92
- ./build.sh --no-default-features
93
- cargo test --no-default-features
90
+ ./build.sh ${{ matrix.libgccjit_version.extra }}
91
+ cargo test ${{ matrix.libgccjit_version.extra }}
94
92
./clean_all.sh
95
93
96
94
- name : Prepare dependencies
@@ -106,29 +104,25 @@ jobs:
106
104
command : build
107
105
args : --release
108
106
109
- - name : Test
110
- if : matrix.libgccjit_version != 'libgccjit12.so'
107
+ - name : Test mini_tests
111
108
run : |
112
- # Enable backtraces for easier debugging
113
- export RUST_BACKTRACE=1
114
-
115
- # Reduce amount of benchmark runs as they are slow
116
- export COMPILE_RUNS=2
117
- export RUN_RUNS=2
109
+ ./test.sh --release --clean --build-sysroot --mini-tests ${{ matrix.libgccjit_version.extra }}
118
110
119
- ./test.sh --release
111
+ - name : Test std_tests
112
+ run : |
113
+ ./test.sh --release --std-tests ${{ matrix.libgccjit_version.extra }}
120
114
121
- - name : Test
122
- if : matrix.libgccjit_version == 'libgccjit12.so'
115
+ - name : Test test_libcore
123
116
run : |
124
- # Enable backtraces for easier debugging
125
- export RUST_BACKTRACE=1
117
+ ./test.sh --release --test-libcore ${{ matrix.libgccjit_version.extra }}
126
118
127
- # Reduce amount of benchmark runs as they are slow
128
- export COMPILE_RUNS=2
129
- export RUN_RUNS=2
119
+ - name : Test extended_sysroot_tests
120
+ run : |
121
+ ./test.sh --release --extended-tests ${{ matrix.libgccjit_version.extra }}
130
122
131
- ./test.sh --release --no-default-features
123
+ - name : Test test_rustc
124
+ run : |
125
+ ./test.sh --release --test-rustc ${{ matrix.libgccjit_version.extra }}
132
126
133
127
duplicates :
134
128
runs-on : ubuntu-latest
0 commit comments