@@ -25,62 +25,28 @@ jobs:
2525 - name : Checkout
2626 uses : actions/checkout@v4
2727 - name : Startup VM
28- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
29- with :
30- architecture : x86_64
31- memory : 4G
32- operating_system : midnightbsd
33- version : ${{matrix.version}}
34- shell : bash
35- sync_files : runner-to-vm
36- shutdown_vm : false
37- run : true
38- - name : Install dependencies
39- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
28+ uses : cross-platform-actions/action@v1.2.0
4029 with :
4130 architecture : x86_64
4231 memory : 4G
4332 operating_system : midnightbsd
4433 version : ${{matrix.version}}
4534 shell : bash
4635 sync_files : false
47- shutdown_vm : false
48- run : |
49- sudo mport index
50- sudo mport upgrade
51- 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
36+ - name : Sync files to VM
37+ shell : cpa.sh {0} --sync-files runner-to-vm
38+ run : true
39+ - name : Install dependencies
40+ shell : cpa.sh {0} --sync-files none
41+ run : |
42+ sudo mport index
43+ sudo mport upgrade
44+ 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
5245 - name : Build
53- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
54- with :
55- architecture : x86_64
56- memory : 4G
57- operating_system : midnightbsd
58- version : ${{matrix.version}}
59- shell : bash
60- sync_files : false
61- shutdown_vm : false
62- run : |
63- 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' }}
46+ shell : cpa.sh {0} --sync-files none
47+ run : |
48+ 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' }}
6449 - name : Test
65- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
66- with :
67- architecture : x86_64
68- memory : 4G
69- operating_system : midnightbsd
70- version : ${{matrix.version}}
71- shell : bash
72- sync_files : false
73- shutdown_vm : false
74- run : |
75- 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
76- - name : Shutdown VM
77- uses : cross-platform-actions/action@13ec3be3fbdfe52a660fe21c83f332747ed878be
78- with :
79- architecture : x86_64
80- memory : 4G
81- operating_system : midnightbsd
82- version : ${{matrix.version}}
83- shell : bash
84- sync_files : false
85- shutdown_vm : true
86- run : true
50+ shell : cpa.sh {0} --sync-files none
51+ run : |
52+ 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