Skip to content

Commit

Permalink
Create github CI yaml file
Browse files Browse the repository at this point in the history
This file automatically triggers testing on github actions.

Change-Id: I23848f2dca925e0c96e64f7d655f32b83498bed1
Signed-off-by: Ruben Vorderman <[email protected]>
  • Loading branch information
rhpvorderman authored and gbtucker committed Oct 30, 2021
1 parent fd83ed1 commit 78f5c31
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Continous integration

on:
pull_request:
push:
branches:
- master
tags:
- "*"

jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install indent
run: sudo apt install indent
- name: Run format check
run: bash tools/check_format.sh

run_tests_unix:
needs: check_format
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
assembler:
- nasm
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Install build dependencies (Linux)
run: sudo apt install ${{ matrix.assembler }}
if: runner.os == 'Linux'
- name: Install build dependencies (Macos)
run: brew install ${{ matrix.assembler }} automake autoconf coreutils
if: runner.os == 'macOS'
- name: Build
run: |
./autogen.sh
./configure
bash -c 'make -j $(nproc)'
- name: Run tests
run: bash tools/test_checks.sh
- name: Run extended tests
run: bash tools/test_extended.sh
if: runner.os == 'Linux' # Fails on Mac OS due to nmake consistency issue

run_tests_windows:
needs: check_format
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Set MSVC developer prompt
uses: ilammy/[email protected]
- name: Install nasm
uses: ilammy/[email protected]
- name: Build
run: nmake -f Makefile.nmake

0 comments on commit 78f5c31

Please sign in to comment.