Skip to content

Commit 3d2fe86

Browse files
committed
Add github actions.
1 parent d6e0e6d commit 3d2fe86

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
types:
6+
7+
jobs:
8+
build_llvm:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- ubuntu-latest
15+
- windows-latest
16+
- macOS-latest
17+
cmake_args:
18+
- ""
19+
steps:
20+
- name: Setup Windows
21+
if: startsWith(matrix.os, 'windows')
22+
uses: tstellar/actions/setup-windows@master
23+
with:
24+
arch: amd64
25+
- uses: actions/checkout@v1
26+
with:
27+
fetch-depth: 1
28+
- name: Install Ninja
29+
uses: tstellar/actions/install-ninja@master
30+
with:
31+
os: ${{ runner.os }}
32+
- name: Test LLVM
33+
uses: tstellar/actions/build-test-llvm-project@master
34+
with:
35+
cmake_args: -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }}
36+
os: ${{ runner.os }}

0 commit comments

Comments
 (0)