-
Notifications
You must be signed in to change notification settings - Fork 223
45 lines (42 loc) · 1.17 KB
/
build.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
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install libgl1-mesa-dev libgtk-3-dev xorg-dev
- name: Install premake
run: |
wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha13/premake-5.0.0-alpha13-linux.tar.gz -O premake.tar.gz
tar -xf premake.tar.gz
- name: Run premake
run: |
./premake5 --cc=${{matrix.compiler}} gmake
- name: Build
run: |
cd build/gmake_${{matrix.compiler}}
make
Windows:
runs-on: windows-latest
strategy:
matrix:
platform: [Win32, x64]
steps:
- uses: actions/checkout@v2
- name: Run premake
shell: powershell
run: |
.\bin\premake5.exe vs2019
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Build
shell: cmd
run: |
msbuild build\vs2019\xatlas.sln /p:Configuration=Release /p:Platform="${{matrix.platform}}" /verbosity:minimal