From e2632f79f9ef7d1df40989d231381c14c2793a08 Mon Sep 17 00:00:00 2001 From: tapxyh4ik <62992891+tapxyh4ik@users.noreply.github.com> Date: Fri, 27 Dec 2024 17:48:52 +0300 Subject: [PATCH] Create build-openal.yml --- .github/workflows/build-openal.yml | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/build-openal.yml diff --git a/.github/workflows/build-openal.yml b/.github/workflows/build-openal.yml new file mode 100644 index 0000000..7b74865 --- /dev/null +++ b/.github/workflows/build-openal.yml @@ -0,0 +1,68 @@ +name: CI - Build OpenAL + +# Based on the script from https://github.com/kcat/openal-soft/blob/master/.github/workflows/build-openal.yml + +# Controls when the workflow will run +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + name: ${{matrix.config.name}} + runs-on: ${{matrix.config.os}} + strategy: + fail-fast: false + matrix: + config: + - { + name: "Win32-Release", + os: windows-2019, + cmake_opts: "-A Win32 \ + -DLIBTYPE=STATIC \ + -DFORCE_STATIC_VCRT=ON \ + -DALSOFT_EXAMPLES=OFF \ + -DALSOFT_TESTS=OFF \ + -DALSOFT_UTILS=OFF \ + -DALSOFT_REQUIRE_WINMM=ON \ + -DALSOFT_REQUIRE_DSOUND=ON \ + -DALSOFT_REQUIRE_WASAPI=ON", + build_type: "Release" + } + - { + name: "Win64-Release", + os: windows-2019, + cmake_opts: "-A x64 \ + -DLIBTYPE=STATIC \ + -DFORCE_STATIC_VCRT=ON \ + -DALSOFT_EXAMPLES=OFF \ + -DALSOFT_TESTS=OFF \ + -DALSOFT_UTILS=OFF \ + -DALSOFT_REQUIRE_WINMM=ON \ + -DALSOFT_REQUIRE_DSOUND=ON \ + -DALSOFT_REQUIRE_WASAPI=ON", + build_type: "Release" + } + + steps: + - name: Checkout OpenAL Soft + uses: actions/checkout@v4 + with: + repository: kcat/openal-soft + ref: 1.24.1 + + - name: Configure + shell: bash + run: | + cmake -B build -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} ${{matrix.config.cmake_opts}} . + + - name: Build + shell: bash + run: | + cmake --build build --config ${{matrix.config.build_type}} + + - name: Upload build as a workflow artifact + uses: actions/upload-artifact@v4 + with: + name: soft_oal-${{matrix.config.name}} + path: build/${{matrix.config.build_type}}