Skip to content

fix tests and bump CI llvm to 15 #94

fix tests and bump CI llvm to 15

fix tests and bump CI llvm to 15 #94

Workflow file for this run

on: [push, pull_request]
name: continuous integration
jobs:
test:
name: test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Install LLVM
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main"
sudo apt-get update
sudo apt-get install --no-install-recommends --yes llvm-15 llvm-15-tools
- name: Install lit
run: pip install lit
- name: Run lit testsuite
run: lit -v --path "$PWD/target/release/:/usr/lib/llvm-15/bin/" ./tests
fmt:
name: rustfmt
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Add rustup component
run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check