-
Notifications
You must be signed in to change notification settings - Fork 13
79 lines (74 loc) · 1.95 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
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
name: CI
on:
push:
tags: ["*"]
branches: [ "master", "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build-ubuntu-22:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install Deps
run: sudo apt update && sudo apt install freeglut3-dev libx11-dev clang-15
- name: Build
run: ./make.sh
- name: Test
run: ./make.sh RunTests
build-and-release-ubuntu-20:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install Deps
run: sudo apt update && sudo apt install freeglut3-dev libx11-dev clang
- name: Build
run: ./make.sh
- name: Test
run: ./make.sh RunTests
- name: Tar
if: startsWith(github.ref, 'refs/tags/')
run: ./make.sh BundleRelease
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: |
Linux_x86_64_release.tar.gz
LICENSE
CHANGELOG.txt
build-and-release-windows:
runs-on: windows-latest
steps:
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
version: 12.2.0
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Build
shell: bash
run: ./make.sh
- name: Test
shell: bash
run: ./make.sh RunTests
- name: Tar
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: ./make.sh BundleRelease
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: |
Windows_x86_64_release.tar.gz
LICENSE
CHANGELOG.txt