-
Notifications
You must be signed in to change notification settings - Fork 72
95 lines (89 loc) · 3.97 KB
/
OpenBSD-Makefile.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
name: OpenBSD Makefile
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- { version: '7.6', deps: sys }
- { version: '7.6', deps: local }
- { version: '7.6', deps: small }
- { version: '7.5', deps: sys }
- { version: '7.5', deps: local }
- { version: '7.5', deps: small }
- { version: '7.4', deps: sys }
- { version: '7.4', deps: local }
- { version: '7.4', deps: small }
concurrency:
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}}
cancel-in-progress: true
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
architecture: x86_64
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
architecture: x86_64
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
sudo pkg_add -u
sudo pkg_add -I ${{ (matrix.version == '7.6') && 'ghostscript-10.03.1p2' || (matrix.version == '7.5') && 'ghostscript-10.03.1' || (matrix.version == '7.4') && 'ghostscript-10.02.0' || 'ghostscript' }}
sudo pkg_add -I ${{ (matrix.version == '7.6') && 'autoconf-2.72p0 automake-1.16.5' || (matrix.version == '7.5') && 'autoconf-2.71 automake-1.16.5' || (matrix.version == '7.4') && 'autoconf-2.71 automake-1.16.5' || 'autoconf automake' }}
sudo pkg_add -I subversion p5-XML-XPath git mawk gmake pkgconf autoconf-archive libtool libltdl help2man doxygen mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio-svn sdl2
- name: Build
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
architecture: x86_64
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }}
- name: Test
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
architecture: x86_64
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check
- name: Shutdown VM
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
architecture: x86_64
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
run: true