-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (51 loc) · 1.76 KB
/
main.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, pull_request]
env:
BUILD_TYPE: Release
jobs:
build-nix:
name: Ubuntu focal (x86_64) debug
runs-on: ubuntu-20.04
env:
BUILD_TYPE: Debug
steps:
- uses: actions/checkout@v2
- name: Checkout enet submodule
run: git submodule update --init src/enet
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev zlib1g-dev
- name: Build for nix
run: bash -xe ci/build-nix.sh
build-nix-release:
name: Ubuntu focal (x86_64) release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Checkout enet submodule
run: git submodule update --init src/enet
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev zlib1g-dev
- name: Build for nix
run: bash -xe ci/build-nix.sh
macos-release:
name: macOS (x86_64) release
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Checkout enet submodule
run: git submodule update --init src/enet
- name: Install dependencies
run: brew install coreutils sdl2 sdl2_image sdl2_mixer glew
- name: Build for mac
run: bash -xe ci/build-mac.sh
windows-release-cross:
name: Windows (x86_64) release (crossbuild from Ubuntu focal x86_64, MinGW-w64)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Checkout enet submodule
run: git submodule update --init src/enet
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y mingw-w64
- name: Build for win cross
run: bash -xe ci/build-win-cross.sh