-
Notifications
You must be signed in to change notification settings - Fork 31
57 lines (55 loc) · 1.3 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
name: CI
on:
push:
paths-ignore:
- '.gitignore'
- 'img/**'
- 'README.md'
pull_request:
paths-ignore:
- '.gitignore'
- 'img/**'
- 'README.md'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [20.04, 22.04]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install libsdl2-dev
- name: Build
run: make -j$(nproc)
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
env:
HOMEBREW_NO_ANALYTICS: 1
run: brew install sdl2
- name: Build
run: make -j$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN)
build-windows:
runs-on: windows-latest
env:
POWERSHELL_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
install: |
base-devel
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-toolchain
# make
# mingw-w64-x86_64-gcc
- name: Build
shell: msys2 {0}
run: make -j $NUMBER_OF_PROCESSORS