-
Notifications
You must be signed in to change notification settings - Fork 301
65 lines (60 loc) · 1.58 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Continous integration
on:
pull_request:
push:
branches:
- master
tags:
- "*"
permissions:
contents: read
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 2
- 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/checkout@v2.3.4
- 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/checkout@v2.3.4
- name: Set MSVC developer prompt
uses: ilammy/msvc-dev-cmd@v1.6.0
- name: Install nasm
uses: ilammy/setup-nasm@v1.2.0
- name: Build
run: nmake -f Makefile.nmake