7 name: ${{matrix.config.name}}
8 runs-on: ${{matrix.config.os}}
14 name: "Win32-Release",
16 cmake_opts: "-A Win32 \
17 -DALSOFT_BUILD_ROUTER=ON \
18 -DALSOFT_REQUIRE_WINMM=ON \
19 -DALSOFT_REQUIRE_DSOUND=ON \
20 -DALSOFT_REQUIRE_WASAPI=ON",
26 cmake_opts: "-A Win32 \
27 -DALSOFT_BUILD_ROUTER=ON \
28 -DALSOFT_REQUIRE_WINMM=ON \
29 -DALSOFT_REQUIRE_DSOUND=ON \
30 -DALSOFT_REQUIRE_WASAPI=ON",
34 name: "Win64-Release",
37 -DALSOFT_BUILD_ROUTER=ON \
38 -DALSOFT_REQUIRE_WINMM=ON \
39 -DALSOFT_REQUIRE_DSOUND=ON \
40 -DALSOFT_REQUIRE_WASAPI=ON",
47 -DALSOFT_BUILD_ROUTER=ON \
48 -DALSOFT_REQUIRE_WINMM=ON \
49 -DALSOFT_REQUIRE_DSOUND=ON \
50 -DALSOFT_REQUIRE_WASAPI=ON",
54 name: "macOS-Release",
56 cmake_opts: "-DALSOFT_REQUIRE_COREAUDIO=ON",
60 name: "Linux-Release",
62 cmake_opts: "-DALSOFT_REQUIRE_RTKIT=ON \
63 -DALSOFT_REQUIRE_ALSA=ON \
64 -DALSOFT_REQUIRE_OSS=ON \
65 -DALSOFT_REQUIRE_PORTAUDIO=ON \
66 -DALSOFT_REQUIRE_PULSEAUDIO=ON \
67 -DALSOFT_REQUIRE_JACK=ON \
68 -DALSOFT_REQUIRE_PIPEWIRE=ON",
69 deps_cmdline: "sudo apt update && sudo apt-get install -qq \
81 - uses: actions/checkout@v1
83 - name: Install Dependencies
86 if [[ ! -z "${{matrix.config.deps_cmdline}}" ]]; then
87 eval ${{matrix.config.deps_cmdline}}
93 cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} ${{matrix.config.cmake_opts}} .
98 cmake --build build --config ${{matrix.config.build_type}}
100 - name: Create Archive
101 if: ${{ matrix.config.os == 'windows-latest' }}
107 cp ${{matrix.config.build_type}}/soft_oal.dll archive
108 cp ${{matrix.config.build_type}}/OpenAL32.dll archive/router
110 - name: Upload Archive
111 # Upload package as an artifact of this workflow.
112 uses: actions/upload-artifact@v3.1.1
113 if: ${{ matrix.config.os == 'windows-latest' }}
115 name: soft_oal-${{matrix.config.name}}