forked from odamex/odamex
-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (118 loc) · 3.53 KB
/
linux.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Linux
on: [push, pull_request]
jobs:
pre_job:
name: Build Preparation
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.check_skip.outputs.should_skip }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Check for build skip
id: check_skip
run: bash ci/check-skip.sh
build-sdl20:
name: Build (SDL 2.0)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Prepare build
run: bash ci/ubuntu-buildgen.sh
- name: Turn on problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Run build
run: cmake --build ./build/
- name: Run unit tests
run: ./build/tests/unit-tests/odagtest --gtest_color=yes
- name: Prepare artifact
run: bash ci/ubuntu-artifact.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Odamex-Linux-x86_64
path: 'build/artifact/*'
build-sdl12:
name: Build (SDL 1.2)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
env:
USE_SDL12: 1
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Prepare build
run: bash ci/ubuntu-buildgen.sh
- name: Run build
run: cmake --build ./build/
- name: Run unit tests
run: ./build/tests/unit-tests/odagtest --gtest_color=yes
build-clang:
name: Build (Clang)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
env:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Prepare build
run: bash ci/ubuntu-buildgen.sh
- name: Run build
run: cmake --build ./build/
- name: Run unit tests
run: ./build/tests/unit-tests/odagtest --gtest_color=yes
build-arm:
name: Build (ARM64)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Prepare build
run: bash ci/ubuntu-buildgen.sh
- name: Turn on problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Run build
run: cmake --build ./build/
- name: Run unit tests
run: ./build/tests/unit-tests/odagtest --gtest_color=yes
build-fedora:
name: Build (Fedora 32)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Run build
run: bash ci/fedora-buildgen.sh
build-ubuntu-focal:
name: Build (Ubuntu 20.04 LTS)
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Run build
run: bash ci/ubuntu-focal-buildgen.sh