-
Notifications
You must be signed in to change notification settings - Fork 18
62 lines (61 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
name: CI
on: [push, pull_request]
jobs:
build-linux-gcc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install 3rd party build tools
run: |
sudo apt-get update
sudo apt-get install -qq nasm
- name: build everything
run: |
$CC -o nobuild nobuild.c
./nobuild test
env:
CC: gcc
CXX: g++
build-linux-clang:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install 3rd party build tools
run: |
sudo apt-get update
sudo apt-get install -qq nasm
- name: build everything
run: |
$CC -o nobuild nobuild.c
./nobuild test
env:
CC: clang
CXX: clang++
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: build everything
run: |
$CC -o nobuild nobuild.c
./nobuild test
env:
CC: clang
CXX: clang++
build-windows-msvc:
runs-on: windows-2019
steps:
- name: force LF
shell: cmd
run: |
git config --global core.autocrlf input
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: build everything
shell: cmd
# this replaces default PowerShell, which can't fail the build
run: |
cl.exe nobuild.c
.\nobuild.exe test
# TODO(#21): there is no CI build for FreeBSD