• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: CI
2
3on:
4  push:
5    branches:
6      - master
7  pull_request:
8    branches:
9      - master
10
11jobs:
12  ci:
13    name: CI
14    runs-on: ${{ matrix.os }}
15    strategy:
16      matrix:
17        os: [macos-latest, ubuntu-latest, windows-latest]
18        clang: [["14.0", "clang_14_0"]]
19        rust: ["1.40.0"]
20    steps:
21      - name: Checkout Repository
22        uses: actions/checkout@v2
23      # LLVM and Clang
24      - name: Install LLVM and Clang
25        uses: KyleMayes/install-llvm-action@v1
26        with:
27          version: ${{ matrix.clang[0] }}
28          directory: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}
29      # Rust
30      - name: Install Rust
31        uses: actions-rs/toolchain@v1
32        with:
33          toolchain: ${{ matrix.rust }}
34      # Test
35      - name: Cargo Test (Dynamic)
36        uses: actions-rs/cargo@v1
37        with:
38          command: test
39          args: --verbose --features ${{ matrix.clang[1] }} -- --nocapture
40      - name: Cargo Test (Runtime)
41        uses: actions-rs/cargo@v1
42        with:
43          command: test
44          args: --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture
45