-
Notifications
You must be signed in to change notification settings - Fork 69
97 lines (91 loc) · 2.63 KB
/
Copy pathci.yml
File metadata and controls
97 lines (91 loc) · 2.63 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on: [push, pull_request]
jobs:
build-linux-tcc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq libsdl2-dev tcc
- name: build nothing
run: |
./build-posix.sh
env:
CC: tcc
CFLAGS: -DSDL_DISABLE_IMMINTRIN_H -L/usr/lib/x86_64-linux-gnu/pulseaudio
NOTHING_CI: on
build-linux-gcc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq libsdl2-dev
- name: build nothing
run: |
./build-posix.sh
env:
CC: gcc
NOTHING_CI: on
build-linux-clang:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq libsdl2-dev
- name: build nothing
run: |
./build-posix.sh
env:
CC: clang
NOTHING_CI: on
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: brew install sdl2 pkg-config
- name: build nothing
run: |
./build-posix.sh
env:
CC: clang
NOTHING_CI: on
# TODO(#1177): build-windows-msvc on GitHub Actions does not support SCU
build-windows-msvc:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: download sdl2
run: |
curl -fsSL -o SDL2-devel-2.0.9-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip
7z x SDL2-devel-2.0.9-VC.zip
mv SDL2-2.0.9 SDL2
- name: build nothing
run: |
mkdir build
cd build
cmake .. -DNOTHING_CI=ON
cmake --build .
# TODO(#1243): build-windows-mingw is broken
# TODO(#1178): %z related warnings on build-windows-mingw GitHub Action
# build-windows-mingw:
# runs-on: windows-2019
# steps:
# - uses: actions/checkout@v1
# # this gives us msys.
# - uses: numworks/setup-msys2@v1
# - name: install dependencies
# run: msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-SDL2 make mingw-w64-x86_64-pkg-config
# - name: build nothing
# run: |
# msys2do ./build-posix.sh
# env:
# CC: gcc