-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.19 KB
/
ci-unix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on: [ push, pull_request ]
name: CI (macos/linux)
jobs:
build_test_fmt_clippy:
name: Build & Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
rust:
- stable
llvm_version: [12, 13]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Cache Rust environment
uses: Swatinem/rust-cache@v2
- name: Install LLVM
uses: KyleMayes/install-llvm-action@v2
with:
version: "${{ matrix.llvm_version }}.0"
- name: Install missing LLVM deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-get update && sudo apt-get install -y libtinfo6
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Run cargo build, test, fmt, clippy
env:
LLVM_FEATURE: llvm${{ matrix.llvm_version }}-0
run: cargo make ci-flow