Skip to content

Commit

Permalink
Merge branch 'devel' into xmf_support
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Nov 24, 2024
2 parents 9c9c620 + 5b74ddf commit f76e40b
Show file tree
Hide file tree
Showing 37 changed files with 29,612 additions and 26,990 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check pull request branch
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- edited

jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Check branches
run: |
if [ ${{ github.head_ref }} != "devel" ] && [ ${{ github.base_ref }} == "master" ]; then
echo "Merge requests to master branch are only allowed from devel branch."
exit 1
fi
50 changes: 50 additions & 0 deletions .github/workflows/cmake-freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: FreeBSD CI

on:
workflow_dispatch:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]

jobs:
test:
runs-on: ubuntu-latest
name: FreeBSD CI
env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
TEMP: ${{github.workspace}}/temp/
steps:
- uses: actions/checkout@v4
- name: Temp Environment Variable
run: |
mkdir -p ${{github.workspace}}/temp
- name: FreeBSD test
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'BUILD_TYPE INSTALL_LOCATION TEMP'
usesh: true
prepare: |
pkg install -y \
cmake \
ninja \
pkgconf \
googletest
run: |
set -e -x
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cd ${{github.workspace}}/build
ctest -C ${{env.BUILD_TYPE}} --verbose
cd ${{github.workspace}}
cmake --install ${{github.workspace}}/build
tar cvf SonivoxV3.tar SonivoxV3
- uses: actions/upload-artifact@v4
with:
name: SonivoxV3-freebsd
path: SonivoxV3.tar
retention-days: 90
overwrite: true
54 changes: 54 additions & 0 deletions .github/workflows/cmake-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Linux CI

on:
workflow_dispatch:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]

env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
TEMP: ${{github.workspace}}/temp/

jobs:
build:
runs-on: ubuntu-latest
name: Linux CI

steps:
- uses: actions/checkout@v4

- name: Preparation
run: sudo apt install libgtest-dev

- name: Temp Environment Variable
run: |
mkdir -p ${{github.workspace}}/temp
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --verbose

- name: Install
run: cmake --install ${{github.workspace}}/build

- name: Create Archive
run: |
cd ${{github.workspace}}
tar cvf SonivoxV3.tar SonivoxV3
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SonivoxV3-linux
path: SonivoxV3.tar
retention-days: 90
overwrite: true
51 changes: 51 additions & 0 deletions .github/workflows/cmake-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: macOS CI

on:
workflow_dispatch:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]

env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
TEMP: ${{github.workspace}}/temp/

jobs:
build:
runs-on: macos-latest
name: macOS CI

steps:
- uses: actions/checkout@v4

- name: Temp Environment Variable
run: |
mkdir -p ${{github.workspace}}/temp
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --verbose

- name: Install
run: cmake --install ${{github.workspace}}/build

- name: Create Archive
run: |
cd ${{github.workspace}}
tar cvf SonivoxV3.tar SonivoxV3
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SonivoxV3-macos
path: SonivoxV3.tar
retention-days: 90
overwrite: true
69 changes: 69 additions & 0 deletions .github/workflows/cmake-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Windows CI

on:
workflow_dispatch:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]

env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: SonivoxV3

jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 }
- { icon: '🟧', sys: clang64 }
name: 🚧${{ matrix.icon }} ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v4

- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
release: false
msystem: ${{matrix.sys}}
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
gtest:p
- name: '${{ matrix.icon }} Configure CMake'
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}

- name: '${{ matrix.icon }} Build'
run: cmake --build build --config ${{env.BUILD_TYPE}}

- name: '${{ matrix.icon }} Test'
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}} --verbose

- name: '${{ matrix.icon }} Install'
run: cmake --install build

- name: '${{ matrix.icon }} Create Archive'
run: tar cvf ${{env.INSTALL_LOCATION}}.tar ${{env.INSTALL_LOCATION}}

- name: '${{ matrix.icon }} Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: ${{env.INSTALL_LOCATION}}-${{matrix.sys}}
path: ${{env.INSTALL_LOCATION}}.tar
retention-days: 90
overwrite: true
37 changes: 0 additions & 37 deletions .github/workflows/cmake.yml

This file was deleted.

Loading

0 comments on commit f76e40b

Please sign in to comment.