-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 1.98 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
58
59
60
61
62
63
64
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Build:
strategy:
matrix:
config: [debug, debugoptimized, release]
standalone: [~, --standalone]
machine:
- os: ubuntu-latest
action: gmake2
toolset: gcc
- os: ubuntu-latest
action: gmake2
toolset: clang
- os: windows-latest
action: vs2019
toolset: msc
exclude:
- config: debug
standalone: --standalone
- config: debugoptimized
standalone: --standalone
runs-on: ${{ matrix.machine.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup premake
uses: abel0b/[email protected]
with:
version: "5.0.0-beta1"
- name: Install X11
if: matrix.machine.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install GCC
if: matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'gcc'
run: sudo apt install -y gcc g++
- name: Install Clang & LLVM
if: matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'clang'
run: sudo apt install -y clang llvm lld
- name: Install msbuild to PATH
if: matrix.machine.os == 'windows-latest' && matrix.machine.toolset == 'msc'
uses: microsoft/[email protected]
- name: Run premake
run: premake5 ${{ matrix.machine.action }} --toolset=${{ matrix.machine.toolset }} ${{ matrix.standalone }} --unity
- name: Build
run: premake5 build --config=${{ matrix.config }} ${{ matrix.standalone }}
- name: Upload build
if: failure()
uses: actions/upload-artifact@v3
with:
name: Fail-${{ matrix.machine.os }}-${{ matrix.machine.toolset }}-${{ matrix.config }}
if-no-files-found: error
path: |
Mahakam/bin/
Erebor/bin/