-
Notifications
You must be signed in to change notification settings - Fork 227
119 lines (100 loc) · 2.71 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: ci
on:
push:
# branches: [ master ] # Uncomment if you want to only run the workflow when pushing on to the master branch
pull_request:
workflow_dispatch:
jobs:
windows_x86_64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
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: |
make release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
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@v4
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: |
make release
- name: Install
run: |
sudo make install
- name: Build AppImage
run: |
make appimage
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: linux_x86_64_binary
path: goxel
if-no-files-found: error
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: appimage
path: Goxel*.AppImage
if-no-files-found: error
osx_x86_64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install scons, glfw3 & tre
run: brew install scons glfw tre
- name: Build
run: |
make release
- name: Compress artifact
run: |
zip goxel.zip goxel
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: osx_binary
path: ./goxel.zip
if-no-files-found: error
- name: Build with xcode
run: |
cd osx/goxel
xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
cd build/Release
tar -cvf goxel.app.tar goxel.app
- name: Upload app Artifacts
uses: actions/upload-artifact@v4
with:
name: goxel-mac.app
path: ./osx/goxel/build/Release/goxel.app.tar
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@v4
with:
submodules: recursive