@@ -12,6 +12,8 @@ permissions:
1212env :
1313 # Enable backtraces for easier debugging
1414 RUST_BACKTRACE : 1
15+ # For the run-make tests.
16+ LLVM_BIN_DIR : /usr/bin
1517
1618jobs :
1719 build :
4850
4951 - name : Install packages
5052 # `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
5254
5355 - name : Install rustfmt & clippy
5456 run : rustup component add rustfmt clippy
@@ -61,11 +63,15 @@ jobs:
6163 sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
6264 echo 'gcc-path = "/usr/lib/"' > config.toml
6365
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+
6472 - name : Set env
6573 run : |
6674 echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
67- echo "LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
68- echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV
6975
7076 # - name: Cache rust repository
7177 # # We only clone the rust repository for rustc tests
@@ -76,12 +82,22 @@ jobs:
7682 # path: rust
7783 # key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
7884
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+
7997 - name : Build
8098 run : |
81- ./y.sh prepare --only-libcore
8299 ./y.sh build --sysroot
83- ./y.sh test --mini-tests
84- cargo test
100+ ./y.sh test --cargo-tests
85101
86102 - name : Run y.sh cargo build
87103 run : |
@@ -101,20 +117,19 @@ jobs:
101117 run : |
102118 ./y.sh test --release --clean --build-sysroot ${{ matrix.commands }}
103119
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-
112120 duplicates :
113121 runs-on : ubuntu-24.04
114122 steps :
115123 - uses : actions/checkout@v4
116124 - run : python tools/check_intrinsics_duplicates.py
117125
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+
118133 build_system :
119134 runs-on : ubuntu-24.04
120135 steps :
0 commit comments