@@ -25,72 +25,38 @@ jobs:
2525 - name : Checkout
2626 uses : actions/checkout@v4
2727 - name : Startup VM
28- uses : cross-platform-actions/action@v1.0 .0
28+ uses : cross-platform-actions/action@v1.1 .0
2929 with :
3030 architecture : x86_64
3131 memory : 4G
3232 operating_system : haiku
3333 version : ${{matrix.version}}
3434 shell : bash
3535 sync_files : false
36- shutdown_vm : false
37- run : true
3836 - name : Sync files to VM
39- uses : cross-platform-actions/action@v1.0.0
40- with :
41- architecture : x86_64
42- memory : 4G
43- operating_system : haiku
44- version : ${{matrix.version}}
45- shell : bash
46- sync_files : runner-to-vm
47- shutdown_vm : false
48- run : true
37+ shell : cpa.sh {0} --sync-files runner-to-vm
38+ run : true
39+ - name : Update system
40+ shell : cpa.sh {0} --sync-files none
41+ run : |
42+ pkgman refresh
43+ pkgman full-sync -y
44+ - name : Reboot VM
45+ shell : cpa.sh {0} --sync-files none --reboot
46+ run : true
4947 - name : Install dependencies
50- uses : cross-platform-actions/action@v1.0.0
51- with :
52- architecture : x86_64
53- memory : 4G
54- operating_system : haiku
55- version : ${{matrix.version}}
56- shell : bash
57- sync_files : false
58- shutdown_vm : false
59- run : |
60- pkgman refresh
61- pkgman install -y subversion git perl gawk make pkgconfig mpg123_devel libogg_devel libvorbis_devel flac_devel libsndfile_devel portaudio_devel libsdl2_devel autoconf autoconf_archive libtool libtool_libltdl doxygen help2man
48+ shell : cpa.sh {0} --sync-files none
49+ run : |
50+ pkgman refresh
51+ pkgman install -y subversion git perl gawk make pkgconfig mpg123_devel libogg_devel libvorbis_devel flac_devel libsndfile_devel portaudio_devel libsdl2_devel autoconf autoconf_archive libtool libtool_libltdl doxygen help2man
52+ - name : Reboot VM
53+ shell : cpa.sh {0} --sync-files none --reboot
54+ run : true
6255 - name : Build
63- uses : cross-platform-actions/action@v1.0.0
64- with :
65- architecture : x86_64
66- memory : 4G
67- operating_system : haiku
68- version : ${{matrix.version}}
69- shell : bash
70- sync_files : false
71- shutdown_vm : false
72- run : |
73- make -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' }}
56+ shell : cpa.sh {0} --sync-files none
57+ run : |
58+ make -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' }}
7459 - name : Test
75- uses : cross-platform-actions/action@v1.0.0
76- with :
77- architecture : x86_64
78- memory : 4G
79- operating_system : haiku
80- version : ${{matrix.version}}
81- shell : bash
82- sync_files : false
83- shutdown_vm : false
84- run : |
85- make -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
86- - name : Shutdown VM
87- uses : cross-platform-actions/action@v1.0.0
88- with :
89- architecture : x86_64
90- memory : 4G
91- operating_system : haiku
92- version : ${{matrix.version}}
93- shell : bash
94- sync_files : false
95- shutdown_vm : true
96- run : true
60+ shell : cpa.sh {0} --sync-files none
61+ run : |
62+ make -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