-
Notifications
You must be signed in to change notification settings - Fork 16
23 lines (20 loc) · 809 Bytes
/
Copy pathccpp.yml
File metadata and controls
23 lines (20 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Continuous integration for XL
on: [push]
jobs:
build:
name: Test ${{ matrix.variant }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
variant: [debug, opt, release]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: apt-get install for ${{ matrix.variant }} on ${{ matrix.os }}
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install -y llvm-dev git gcc g++ make findutils gawk
- name: Brew install for ${{ matrix.variant }} on ${{ matrix.os }}
if: startsWith(matrix.os, 'macOS')
run: brew install llvm || brew reinstall llvm
- name: make check for ${{ matrix.variant }} on ${{ matrix.os }}
run: PATH=$PATH:/usr/local/opt/llvm/bin make ${{ matrix.variant }}-check