aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml46
1 files changed, 41 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1a94c760..b1c3b413 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,6 +1,6 @@
name: CI
-on: [push]
+on: [push, pull_request]
jobs:
build:
@@ -14,6 +14,7 @@ jobs:
name: "Win32-Release",
os: windows-latest,
cmake_opts: "-A Win32 \
+ -DALSOFT_TESTS=ON \
-DALSOFT_BUILD_ROUTER=ON \
-DALSOFT_REQUIRE_WINMM=ON \
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -24,6 +25,7 @@ jobs:
name: "Win32-Debug",
os: windows-latest,
cmake_opts: "-A Win32 \
+ -DALSOFT_TESTS=ON \
-DALSOFT_BUILD_ROUTER=ON \
-DALSOFT_REQUIRE_WINMM=ON \
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -34,6 +36,7 @@ jobs:
name: "Win64-Release",
os: windows-latest,
cmake_opts: "-A x64 \
+ -DALSOFT_TESTS=ON \
-DALSOFT_BUILD_ROUTER=ON \
-DALSOFT_REQUIRE_WINMM=ON \
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -44,6 +47,7 @@ jobs:
name: "Win64-Debug",
os: windows-latest,
cmake_opts: "-A x64 \
+ -DALSOFT_TESTS=ON \
-DALSOFT_BUILD_ROUTER=ON \
-DALSOFT_REQUIRE_WINMM=ON \
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -51,9 +55,34 @@ jobs:
build_type: "Debug"
}
- {
+ name: "Win64-UWP",
+ os: windows-latest,
+ cmake_opts: "-A x64 \
+ -DALSOFT_TESTS=OFF \
+ -DCMAKE_SYSTEM_NAME=WindowsStore \
+ \"-DCMAKE_SYSTEM_VERSION=10.0\" \
+ -DALSOFT_BUILD_ROUTER=ON \
+ -DALSOFT_REQUIRE_WASAPI=ON",
+ build_type: "Release"
+ }
+ - {
name: "macOS-Release",
os: macos-latest,
- cmake_opts: "-DALSOFT_REQUIRE_COREAUDIO=ON",
+ cmake_opts: "-DALSOFT_REQUIRE_COREAUDIO=ON \
+ -DALSOFT_TESTS=ON",
+ build_type: "Release"
+ }
+ - {
+ name: "iOS-Release",
+ os: macos-latest,
+ cmake_opts: "-GXcode \
+ -DCMAKE_SYSTEM_NAME=iOS \
+ -DALSOFT_REQUIRE_COREAUDIO=ON \
+ -DALSOFT_UTILS=OFF \
+ -DALSOFT_EXAMPLES=OFF \
+ -DALSOFT_TESTS=OFF \
+ -DALSOFT_INSTALL=OFF \
+ \"-DCMAKE_OSX_ARCHITECTURES=arm64\"",
build_type: "Release"
}
- {
@@ -65,7 +94,8 @@ jobs:
-DALSOFT_REQUIRE_PORTAUDIO=ON \
-DALSOFT_REQUIRE_PULSEAUDIO=ON \
-DALSOFT_REQUIRE_JACK=ON \
- -DALSOFT_REQUIRE_PIPEWIRE=ON",
+ -DALSOFT_REQUIRE_PIPEWIRE=ON \
+ -DALSOFT_TESTS=ON",
deps_cmdline: "sudo apt update && sudo apt-get install -qq \
libpulse-dev \
portaudio19-dev \
@@ -78,7 +108,7 @@ jobs:
}
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- name: Install Dependencies
shell: bash
@@ -97,6 +127,12 @@ jobs:
run: |
cmake --build build --config ${{matrix.config.build_type}}
+ - name: Test
+ shell: bash
+ run: |
+ cd build
+ ctest
+
- name: Create Archive
if: ${{ matrix.config.os == 'windows-latest' }}
shell: bash
@@ -109,7 +145,7 @@ jobs:
- name: Upload Archive
# Upload package as an artifact of this workflow.
- uses: actions/[email protected]
+ uses: actions/[email protected]
if: ${{ matrix.config.os == 'windows-latest' }}
with:
name: soft_oal-${{matrix.config.name}}