Skip to content

Commit 78f5c31

Browse files
rhpvordermangbtucker
authored andcommitted
Create github CI yaml file
This file automatically triggers testing on github actions. Change-Id: I23848f2dca925e0c96e64f7d655f32b83498bed1 Signed-off-by: Ruben Vorderman <[email protected]>
1 parent fd83ed1 commit 78f5c31

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Continous integration
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
tags:
9+
- "*"
10+
11+
jobs:
12+
check_format:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/[email protected]
16+
- name: Install indent
17+
run: sudo apt install indent
18+
- name: Run format check
19+
run: bash tools/check_format.sh
20+
21+
run_tests_unix:
22+
needs: check_format
23+
strategy:
24+
matrix:
25+
os:
26+
- ubuntu-latest
27+
- macos-latest
28+
assembler:
29+
- nasm
30+
runs-on: ${{ matrix.os }}
31+
steps:
32+
- uses: actions/[email protected]
33+
- name: Install build dependencies (Linux)
34+
run: sudo apt install ${{ matrix.assembler }}
35+
if: runner.os == 'Linux'
36+
- name: Install build dependencies (Macos)
37+
run: brew install ${{ matrix.assembler }} automake autoconf coreutils
38+
if: runner.os == 'macOS'
39+
- name: Build
40+
run: |
41+
./autogen.sh
42+
./configure
43+
bash -c 'make -j $(nproc)'
44+
- name: Run tests
45+
run: bash tools/test_checks.sh
46+
- name: Run extended tests
47+
run: bash tools/test_extended.sh
48+
if: runner.os == 'Linux' # Fails on Mac OS due to nmake consistency issue
49+
50+
run_tests_windows:
51+
needs: check_format
52+
runs-on: windows-latest
53+
steps:
54+
- uses: actions/[email protected]
55+
- name: Set MSVC developer prompt
56+
uses: ilammy/[email protected]
57+
- name: Install nasm
58+
uses: ilammy/[email protected]
59+
- name: Build
60+
run: nmake -f Makefile.nmake

0 commit comments

Comments
 (0)