-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (61 loc) · 2.01 KB
/
build-openal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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}}