Skip to content

Commit

Permalink
add GitHub CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanMcG authored and jbkempf committed Sep 1, 2021
1 parent deb7ed7 commit dd8643a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
cc: clang
- os: ubuntu-latest
cc: gcc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe"
sudo apt-get update -y -qq
sudo apt-get install meson ninja-build
- name: Execute build
env:
CC: ${{ matrix.cc }}
run: |
meson setup build
cd build && ninja

0 comments on commit dd8643a

Please sign in to comment.