Skip to content

Commit e764dd9

Browse files
SeanMcGjbkempf
authored andcommitted
add GitHub CI job
1 parent deb7ed7 commit e764dd9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- os: ubuntu-latest
18+
cc: clang
19+
- os: ubuntu-latest
20+
cc: gcc
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Install Linux dependencies
26+
if: runner.os == 'Linux'
27+
run: |
28+
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe"
29+
sudo apt-get update -y -qq
30+
sudo apt-get install meson ninja-build
31+
32+
- name: Execute build
33+
env:
34+
CC: ${{ matrix.cc }}
35+
run: |
36+
meson setup build
37+
cd build && ninja

0 commit comments

Comments
 (0)