forked from OpenBoardView/OpenBoardView
-
Notifications
You must be signed in to change notification settings - Fork 9
158 lines (158 loc) · 5.67 KB
/
make_packages.yml
File metadata and controls
158 lines (158 loc) · 5.67 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: Build and make packages
on: [push, pull_request]
jobs:
build-and-package_DEB_RPM:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: docker/setup-buildx-action@v3 # enable caching support for action below
- uses: docker/build-push-action@v6
with:
context: .
load: true
tags: openboardview.org/linux-build-env:latest
cache-from: type=gha,scope=linux-build-env
cache-to: type=gha,scope=linux-build-env
target: linux-build-env
env:
DOCKER_BUILD_CHECKS_ANNOTATIONS: false
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
- name: Linux build_DEBUG
run: >
docker run --rm -t -v "$PWD:$PWD" -w "$PWD" -u "$(id -u):$(id -g)" openboardview.org/linux-build-env:latest sh -c '
bash ./build.sh --recompile --debug &&
mv bin/openboardview bin/openboardview_DEBUG
'
- uses: actions/upload-artifact@v4
with:
name: "openboardview_DEBUG_linux_elf.${{ github.sha }}"
path: bin/openboardview_DEBUG
- name: Linux build
run: >
docker run --rm -t -v "$PWD:$PWD" -w "$PWD" -u "$(id -u):$(id -g)" openboardview.org/linux-build-env:latest sh -c '
bash ./build.sh --recompile &&
cd release_build &&
make package
'
- uses: actions/upload-artifact@v4
with:
name: "openboardview_package_linux_deb.${{ github.sha }}"
path: '*.deb'
- uses: actions/upload-artifact@v4
with:
name: "openboardview_package_linux_rpm.${{ github.sha }}"
path: '*.rpm'
crossbuild-32bit-exe-on-mingw:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: docker/setup-buildx-action@v3 # enable caching support for action below
- uses: docker/build-push-action@v6
with:
context: .
load: true
tags: openboardview.org/mingw-deb-based-build-env:latest
cache-from: type=gha,scope=mingw-deb-based-build-env
cache-to: type=gha,scope=mingw-deb-based-build-env
target: mingw-deb-based-build-env
env:
DOCKER_BUILD_CHECKS_ANNOTATIONS: false
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
- name: Mingw build debug
run: >
docker run --rm -t -v "$PWD:$PWD" -w "$PWD" -u "$(id -u):$(id -g)" openboardview.org/mingw-deb-based-build-env:latest sh -c '
CROSS=mingw64 ./build.sh --recompile --debug &&
mv bin/openboardview.exe bin/openboardview_DEBUG.exe
'
- uses: actions/upload-artifact@v4
with:
name: "openboardview_DEBUG-32bit.exe.${{ github.sha }}"
path: bin/openboardview_DEBUG.exe
- name: Mingw build
run: >
docker run --rm -t -v "$PWD:$PWD" -w "$PWD" -u "$(id -u):$(id -g)" openboardview.org/mingw-deb-based-build-env:latest sh -c '
CROSS=mingw64 ./build.sh --recompile
'
- uses: actions/upload-artifact@v4
with:
name: "openboardview-32bit.exe.${{ github.sha }}"
path: bin/openboardview.exe
build-and-package_intel-DMG:
runs-on: macos-13 # intel runner
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: MacOS dependencies
run: brew update && brew install sdl2
- name: MacOS build
run: TERM=xterm bash ./build.sh --recompile
- uses: actions/upload-artifact@v4
with:
name: "openboardview_unsigned_macos13_intel_dmg.${{ github.sha }}"
path: '*.dmg'
build-and-package_universal-DMG:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: MacOS dependencies
uses: BrettDong/setup-sdl2-frameworks@v2 # Installing as a framework to build univeral x86_64 + arm64 binary
with:
sdl2: 2.32.0
- name: MacOS build
run: TERM=xterm bash ./build.sh --recompile
- uses: actions/upload-artifact@v4
with:
name: "openboardview_unsigned_macos15_universal_dmg.${{ github.sha }}"
path: '*.dmg'
build-64bit-exe-on-windows:
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up shell
shell: bash
run: |
echo 'C:\msys64\usr\bin\' >> "$GITHUB_PATH"
echo 'C:\msys64\ucrt64\bin\' >> "$GITHUB_PATH"
- name: Install dependencies
shell: bash
run: |
pacman -Sy
pacman -S --noconfirm make mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-SDL2
# Preinstalled python forced into UTF8 mode is used
- name: Build ucrt64 debug
if: always()
shell: bash
run: |
PYTHONUTF8=1 ./build.sh --debug --recompile
mv bin/openboardview.exe bin/openboardview_DEBUG.exe
- uses: actions/upload-artifact@v4
if: always()
with:
name: "openboardview_DEBUG-ucrt64.exe.${{ github.sha }}"
path: bin/openboardview_DEBUG.exe
- name: Build ucrt64
if: always()
shell: bash
run: |
PYTHONUTF8=1 ./build.sh --recompile
- uses: actions/upload-artifact@v4
if: always()
with:
name: "openboardview-ucrt64.exe.${{ github.sha }}"
path: bin/openboardview.exe