37 lines
971 B
YAML
37 lines
971 B
YAML
name: Core-13 Pure CI (LLVM)
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-core13-pure-llvm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust (stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Cache cargo
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install LLVM 18 (llvm-config-18)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y curl ca-certificates lsb-release wget gnupg
|
|
curl -fsSL https://apt.llvm.org/llvm.sh -o llvm.sh
|
|
chmod +x llvm.sh
|
|
sudo ./llvm.sh 18
|
|
llvm-config-18 --version
|
|
|
|
- name: Run tests with Core-13 pure mode + LLVM
|
|
env:
|
|
NYASH_MIR_CORE13_PURE: "1"
|
|
run: |
|
|
export LLVM_SYS_180_PREFIX="$(llvm-config-18 --prefix)"
|
|
export LLVM_SYS_181_PREFIX="$(llvm-config-18 --prefix)"
|
|
cargo test --features llvm --all-targets --no-fail-fast
|
|
|