forked from shumatech/BOSSA
-
Notifications
You must be signed in to change notification settings - Fork 3
100 lines (95 loc) · 2.13 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Legacy Makefile Build Environment
on: [push, pull_request]
env:
PIPENV_ACTIVE: 1
deb_packages: >-
libreadline-dev
libwxgtk3.0-gtk3-dev
wx-common
wx3.0-headers
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ${{ env.deb_packages }}
- name: Build
run: |
make -j
make install
bin/bossac --help
- uses: actions/upload-artifact@v3
if: always()
with:
name: linux
path: bin
macos:
runs-on: macOS-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Install dependencies
run: |
brew update
brew install wxmac
- name: Build
run: |
make -j
make install
bin/bossac --help
- uses: actions/upload-artifact@v3
if: always()
with:
name: macos
path: bin
# TODO: Not working currently!
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw32, env: i686 }
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
install: >-
base-devel
git
pacboy: >-
make
binutils
gcc
wxwidgets3.2-common
wxwidgets3.2-common-libs
wxwidgets3.2-gtk3
wxwidgets3.2-gtk3-libs
wxwidgets3.2-msw
wxwidgets3.2-msw-cb_headers
wxwidgets3.2-msw-libs
- name: Build
shell: msys2 {0}
run: |
set MSYSTEM=MINGW32
mingw32-make -j
mingw32-make install
bin/bossac --help
- uses: actions/upload-artifact@v3
if: always()
with:
name: windows
path: bin