-
Notifications
You must be signed in to change notification settings - Fork 227
96 lines (81 loc) · 2.19 KB
/
ci.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
name: ci
on:
push:
# branches: [ master ] # Uncomment if you want to only run the workflow when pushing on to the master branch
pull_request:
jobs:
windows_x86_64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-glfw mingw-w64-x86_64-libtre-git mingw-w64-x86_64-libpng scons make git
- name: Build Goxel
run: |
scons -j 4 mode=release
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: win_x86_64_binary
path: goxel.exe
if-no-files-found: error
linux_x86_64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install GLFW3, PKG Config, Git, Gtk3, LibPNG & SCONS
run: |
sudo apt-get install libglfw3-dev pkg-config git libgtk-3-dev \
libpng-dev libpng16-16 scons libfuse2
- name: Build Goxel
run: |
scons -j 4 mode=release
- name: Build AppImage
run: |
make appimage
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: linux_x86_64_binary
path: goxel
if-no-files-found: error
- name: Upload AppImage
uses: actions/upload-artifact@v3
with:
name: appimage
path: Goxel*.AppImage
if-no-files-found: error
osx_x86_64:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install scons, glfw3 & tre
run: brew install scons glfw tre
- name: Build
run: |
scons -j 4 mode=release
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: osx_binary
path: ./goxel
if-no-files-found: error
Success: # Not Neccessary
needs: [linux_x86_64, osx_x86_64, windows_x86_64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive