File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Nightly compilation of rustc with rustc_codegen_gcc
2+
3+ on :
4+ pull_request :
5+ # TODO: remove pull_request and add schedule to run during the night.
6+
7+ env :
8+ # Enable backtraces for easier debugging
9+ RUST_BACKTRACE : 1
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-24.04
14+
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ arch :
19+ - host_target : " x86_64-unknown-linux-gnu"
20+ gcc_urls :
21+ - " https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb"
22+ - host_target : " m68k-unknown-linux-gnu"
23+ gcc_urls :
24+ - " https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb"
25+ - " https://github.com/cross-cg-gcc-tools/cross-gcc/releases/latest/download/gcc-m68k-15.deb"
26+
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - run : |
31+ ls
32+ echo "*****"
33+ ls rustc_codegen_gcc
34+ echo "*****"
35+
36+ - uses : actions/checkout@v4
37+ with :
38+ repository : " https://github.com/rust-lang/rust"
39+
40+ # `rustup show` installs from rust-toolchain.toml
41+ - name : Setup rust toolchain
42+ run : rustup show
43+
44+ - name : Setup rust cache
45+ uses : Swatinem/rust-cache@v2
46+
47+ - name : Download and install artifacts
48+ run : |
49+ for url in "${{ matrix.arch.gcc_urls[@] }}"; do
50+ curl -L -o package.deb $url
51+ sudo dpkg --force-overwrite -i package.deb
52+ done
53+
54+ # TODO: patch linux-raw-sys and rustix.
55+
56+ - name : Compile rustc
57+ run : |
58+ cd rust
59+ # TODO: add --host=${{ matrix.arch.host_target }} if needed (should not be since it's in the toml config file)
60+ ./x build --stage 2 --config ../rustc_codegen_gcc/tests/bootstraps/bootstrap.${{ matrix.arch.host_target }}.toml
Original file line number Diff line number Diff line change 1+ profile = " compiler"
2+ change-id = 140732
3+
4+ [build ]
5+ target = [" m68k-unknown-linux-gnu" ]
6+
7+ [rust ]
8+ codegen-backends = [" gcc" ]
9+ deny-warnings = false
10+ debug-assertions = false
11+ debug-assertions-std = false
12+
13+ [gcc ]
14+ download-ci-gcc = true
15+ libgccjit-libs-dir = " /home/user/libgccjit-libs-dir"
16+
17+ [target .m68k-unknown-linux-gnu ]
18+ # TODO: fix if needed:
19+ # cc = "/home/user/x-tools/m68k-unknown-linux-gnu/usr/bin/m68k-unknown-linux-gnu-gcc"
Original file line number Diff line number Diff line change 1+ profile = " compiler"
2+ change-id = 140732
3+
4+ [rust ]
5+ codegen-backends = [" gcc" ]
6+ deny-warnings = false
7+ debug-assertions = false
8+ debug-assertions-std = false
9+
10+ [gcc ]
11+ download-ci-gcc = true
You can’t perform that action at this time.
0 commit comments