summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_cranelift/.github/workflows')
-rw-r--r--compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml6
-rw-r--r--compiler/rustc_codegen_cranelift/.github/workflows/main.yml60
-rw-r--r--compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml4
3 files changed, 50 insertions, 20 deletions
diff --git a/compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml b/compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml
index 3c4055566..12aa69d3c 100644
--- a/compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml
+++ b/compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml
@@ -46,12 +46,12 @@ jobs:
run: rustup set default-host x86_64-pc-windows-gnu
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
- name: Build
- run: ./y.rs build --sysroot none
+ run: ./y.sh build --sysroot none
- name: Test abi-cafe
env:
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
- run: ./y.rs abi-cafe
+ run: ./y.sh abi-cafe
diff --git a/compiler/rustc_codegen_cranelift/.github/workflows/main.yml b/compiler/rustc_codegen_cranelift/.github/workflows/main.yml
index e4af73ea6..8e6c1e8ad 100644
--- a/compiler/rustc_codegen_cranelift/.github/workflows/main.yml
+++ b/compiler/rustc_codegen_cranelift/.github/workflows/main.yml
@@ -19,7 +19,7 @@ jobs:
- name: Rustfmt
run: |
cargo fmt --check
- rustfmt --check build_system/mod.rs
+ rustfmt --check build_system/main.rs
rustfmt --check example/*
@@ -91,22 +91,52 @@ jobs:
sudo apt-get install -y gcc-s390x-linux-gnu qemu-user
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
+
+ - name: Build
+ run: ./y.sh build --sysroot none
- - name: Build without unstable features
+ - name: Test
env:
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
- # This is the config rust-lang/rust uses for builds
- run: ./y.rs build --no-unstable-features
+ run: ./y.sh test
- - name: Build
- run: ./y.rs build --sysroot none
+ - name: Install LLVM standard library
+ run: rustup target add ${{ matrix.env.TARGET_TRIPLE }}
- - name: Test
+ # This is roughly config rust-lang/rust uses for testing
+ - name: Test with LLVM sysroot
+ # Skip native x86_64-pc-windows-gnu. It is way too slow and cross-compiled
+ # x86_64-pc-windows-gnu covers at least part of the tests.
+ if: matrix.os != 'windows-latest' || matrix.env.TARGET_TRIPLE != 'x86_64-pc-windows-gnu'
env:
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
- run: ./y.rs test
+ run: ./y.sh test --sysroot llvm --no-unstable-features
+
+
+ # This job doesn't use cg_clif in any way. It checks that all cg_clif tests work with cg_llvm too.
+ test_llvm:
+ runs-on: ubuntu-latest
+ timeout-minutes: 60
+
+ defaults:
+ run:
+ shell: bash
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Prepare dependencies
+ run: ./y.rs prepare
+
+ - name: Disable JIT tests
+ run: |
+ sed -i 's/jit./#jit./' config.txt
+
+ - name: Test
+ env:
+ TARGET_TRIPLE: x86_64-unknown-linux-gnu
+ run: ./y.rs test --use-backend llvm
bench:
runs-on: ubuntu-latest
@@ -135,13 +165,13 @@ jobs:
run: cargo install hyperfine || true
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
- name: Build
- run: CI_OPT=1 ./y.rs build --sysroot none
+ run: CI_OPT=1 ./y.sh build --sysroot none
- name: Benchmark
- run: CI_OPT=1 ./y.rs bench
+ run: CI_OPT=1 ./y.sh bench
dist:
@@ -194,13 +224,13 @@ jobs:
sudo apt-get install -y gcc-mingw-w64-x86-64 wine-stable
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
- name: Build backend
- run: CI_OPT=1 ./y.rs build --sysroot none
+ run: CI_OPT=1 ./y.sh build --sysroot none
- name: Build sysroot
- run: CI_OPT=1 ./y.rs build
+ run: CI_OPT=1 ./y.sh build
- name: Package prebuilt cg_clif
run: tar cvfJ cg_clif.tar.xz dist
diff --git a/compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml b/compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml
index b2f772c4f..b49dc3aff 100644
--- a/compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml
+++ b/compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml
@@ -18,7 +18,7 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
- name: Test
run: ./scripts/test_bootstrap.sh
@@ -38,7 +38,7 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
- name: Prepare dependencies
- run: ./y.rs prepare
+ run: ./y.sh prepare
- name: Test
run: ./scripts/test_rustc_tests.sh