@@ -12,6 +12,8 @@ permissions:
12
12
env :
13
13
# Enable backtraces for easier debugging
14
14
RUST_BACKTRACE : 1
15
+ # For the run-make tests.
16
+ LLVM_BIN_DIR : /usr/bin
15
17
16
18
jobs :
17
19
build :
48
50
49
51
- name : Install packages
50
52
# `llvm-14-tools` is needed to install the `FileCheck` binary which is used for asm tests.
51
- run : sudo apt-get install ninja-build ripgrep llvm-14-tools
53
+ run : sudo apt-get install ninja-build ripgrep llvm-14-tools llvm
52
54
53
55
- name : Install rustfmt & clippy
54
56
run : rustup component add rustfmt clippy
@@ -61,11 +63,15 @@ jobs:
61
63
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
62
64
echo 'gcc-path = "/usr/lib/"' > config.toml
63
65
66
+ # Some run-make tests fail if we use our forked GCC because it doesn't
67
+ # bundle libstdc++, so we switch to gcc-14 to have a GCC that has
68
+ # libstdc++.
69
+ - name : Set default GCC to gcc-14
70
+ run : sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-14 30
71
+
64
72
- name : Set env
65
73
run : |
66
74
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
67
- echo "LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
68
- echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
69
75
70
76
# - name: Cache rust repository
71
77
# # We only clone the rust repository for rustc tests
@@ -76,12 +82,22 @@ jobs:
76
82
# path: rust
77
83
# key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
78
84
85
+ - name : Prepare
86
+ run : ./y.sh prepare --only-libcore
87
+
88
+ - name : Check formatting
89
+ run : ./y.sh fmt --check
90
+
91
+ - name : clippy
92
+ run : |
93
+ cargo clippy --all-targets -- -D warnings
94
+ cargo clippy --all-targets --no-default-features -- -D warnings
95
+ cargo clippy --manifest-path build_system/Cargo.toml --all-targets -- -D warnings
96
+
79
97
- name : Build
80
98
run : |
81
- ./y.sh prepare --only-libcore
82
99
./y.sh build --sysroot
83
- ./y.sh test --mini-tests
84
- cargo test
100
+ ./y.sh test --cargo-tests
85
101
86
102
- name : Run y.sh cargo build
87
103
run : |
@@ -101,20 +117,19 @@ jobs:
101
117
run : |
102
118
./y.sh test --release --clean --build-sysroot ${{ matrix.commands }}
103
119
104
- - name : Check formatting
105
- run : ./y.sh fmt --check
106
-
107
- - name : clippy
108
- run : |
109
- cargo clippy --all-targets -- -D warnings
110
- cargo clippy --all-targets --features master -- -D warnings
111
-
112
120
duplicates :
113
121
runs-on : ubuntu-24.04
114
122
steps :
115
123
- uses : actions/checkout@v4
116
124
- run : python tools/check_intrinsics_duplicates.py
117
125
126
+ spell_check :
127
+ runs-on : ubuntu-24.04
128
+ steps :
129
+ - uses : actions/checkout@v4
130
+ -
uses :
crate-ci/[email protected]
131
+ - uses : streetsidesoftware/cspell-action@v7
132
+
118
133
build_system :
119
134
runs-on : ubuntu-24.04
120
135
steps :
0 commit comments