@@ -28,66 +28,32 @@ jobs:
2828 - name : Checkout
2929 uses : actions/checkout@v4
3030 - name : Startup VM
31- uses : cross-platform-actions/action@v1.0.0
32- with :
33- architecture : x86_64
34- memory : 4G
35- operating_system : netbsd
36- version : ${{matrix.version}}
37- shell : bash
38- sync_files : runner-to-vm
39- shutdown_vm : false
40- run : true
41- - name : Install dependencies
42- uses : cross-platform-actions/action@v1.0.0
31+ uses : cross-platform-actions/action@v1.2.0
4332 with :
4433 architecture : x86_64
4534 memory : 4G
4635 operating_system : netbsd
4736 version : ${{matrix.version}}
4837 shell : bash
4938 sync_files : false
50- shutdown_vm : false
51- run : |
52- sudo pkgin -y update
53- sudo pkgin -y full-upgrade
54- sudo pkgin -y install subversion-base git p5-XML-XPath mawk
55- sudo pkgin -y install gmake pkgconf
56- sudo pkgin -y install mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio SDL2
57- sudo pkgin -y install autoconf autoconf-archive automake libtool libltdl
58- sudo pkgin -y install doxygen help2man
39+ - name : Sync files to VM
40+ shell : cpa.sh {0} --sync-files runner-to-vm
41+ run : true
42+ - name : Install dependencies
43+ shell : cpa.sh {0} --sync-files none
44+ run : |
45+ sudo pkgin -y update
46+ sudo pkgin -y full-upgrade
47+ sudo pkgin -y install subversion-base git p5-XML-XPath mawk
48+ sudo pkgin -y install gmake pkgconf
49+ sudo pkgin -y install mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio SDL2
50+ sudo pkgin -y install autoconf autoconf-archive automake libtool libltdl
51+ sudo pkgin -y install doxygen help2man
5952 - name : Build
60- uses : cross-platform-actions/action@v1.0.0
61- with :
62- architecture : x86_64
63- memory : 4G
64- operating_system : netbsd
65- version : ${{matrix.version}}
66- shell : bash
67- sync_files : false
68- shutdown_vm : false
69- run : |
70- gmake -j4 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' }}
53+ shell : cpa.sh {0} --sync-files none
54+ run : |
55+ gmake -j4 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' }}
7156 - name : Test
72- uses : cross-platform-actions/action@v1.0.0
73- with :
74- architecture : x86_64
75- memory : 4G
76- operating_system : netbsd
77- version : ${{matrix.version}}
78- shell : bash
79- sync_files : false
80- shutdown_vm : false
81- run : |
82- gmake -j4 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
83- - name : Shutdown VM
84- uses : cross-platform-actions/action@v1.0.0
85- with :
86- architecture : x86_64
87- memory : 4G
88- operating_system : netbsd
89- version : ${{matrix.version}}
90- shell : bash
91- sync_files : false
92- shutdown_vm : true
93- run : true
57+ shell : cpa.sh {0} --sync-files none
58+ run : |
59+ gmake -j4 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