@@ -27,62 +27,28 @@ jobs:
2727 - name : Checkout
2828 uses : actions/checkout@v4
2929 - name : Startup VM
30- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
31- with :
32- architecture : x86_64
33- memory : 4G
34- operating_system : midnightbsd
35- version : ${{matrix.version}}
36- shell : bash
37- sync_files : runner-to-vm
38- shutdown_vm : false
39- run : true
40- - name : Install dependencies
41- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
30+ uses : cross-platform-actions/action@v1.1.0
4231 with :
4332 architecture : x86_64
4433 memory : 4G
4534 operating_system : midnightbsd
4635 version : ${{matrix.version}}
4736 shell : bash
4837 sync_files : false
49- shutdown_vm : false
50- run : |
51- sudo mport index
52- sudo mport upgrade
53- sudo mport install subversion p5-XML-TreePP git mawk gmake pkgconf autoconf autoconf-archive automake libtool help2man doxygen mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio sdl2 || true
38+ - name : Sync files to VM
39+ shell : cpa.sh {0} --sync-files runner-to-vm
40+ run : true
41+ - name : Install dependencies
42+ shell : cpa.sh {0} --sync-files none
43+ run : |
44+ sudo mport index
45+ sudo mport upgrade
46+ sudo mport install subversion p5-XML-TreePP git mawk gmake pkgconf autoconf autoconf-archive automake libtool help2man doxygen mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio sdl2 || true
5447 - name : Build
55- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
56- with :
57- architecture : x86_64
58- memory : 4G
59- operating_system : midnightbsd
60- version : ${{matrix.version}}
61- shell : bash
62- sync_files : false
63- shutdown_vm : false
64- run : |
65- 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' }}
48+ shell : cpa.sh {0} --sync-files none
49+ run : |
50+ 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' }}
6651 - name : Test
67- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
68- with :
69- architecture : x86_64
70- memory : 4G
71- operating_system : midnightbsd
72- version : ${{matrix.version}}
73- shell : bash
74- sync_files : false
75- shutdown_vm : false
76- run : |
77- 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
78- - name : Shutdown VM
79- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
80- with :
81- architecture : x86_64
82- memory : 4G
83- operating_system : midnightbsd
84- version : ${{matrix.version}}
85- shell : bash
86- sync_files : false
87- shutdown_vm : true
88- run : true
52+ shell : cpa.sh {0} --sync-files none
53+ run : |
54+ 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
0 commit comments