Skip to content

Commit 5f6d814

Browse files
committed
new mac workflow, added artifacts
1 parent f6d6254 commit 5f6d814

File tree

3 files changed

+69
-4
lines changed

3 files changed

+69
-4
lines changed

.github/workflows/cmake.yml renamed to .github/workflows/cmake-linux.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
# Execute tests defined by the CMake configuration.
3636
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
3737
run: ctest -C ${{env.BUILD_TYPE}}
38-
38+
3939
- name: Install
4040
run: cmake --install ${{github.workspace}}/build
4141

4242
- name: Create Archive
4343
run: |
4444
cd ${{github.workspace}}
4545
tar cvf SonivoxV3.tar SonivoxV3
46-
46+
4747
- name: Upload Artifacts
4848
uses: actions/upload-artifact@v4
4949
with:
50-
name: SonivoxV3
50+
name: SonivoxV3-linux
5151
path: SonivoxV3.tar
5252
retention-days: 90
5353
overwrite: true

.github/workflows/cmake-mac.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: MacOS Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "master", "devel" ]
6+
pull_request:
7+
branches: [ "master", "devel" ]
8+
9+
env:
10+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11+
BUILD_TYPE: RelWithDebInfo
12+
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
13+
14+
jobs:
15+
build:
16+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
17+
# You can convert this to a matrix build if you need cross-platform coverage.
18+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19+
runs-on: macos-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Configure CMake
25+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
26+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
27+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}
28+
29+
- name: Build
30+
# Build your program with the given configuration
31+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
32+
33+
- name: Test
34+
working-directory: ${{github.workspace}}/build
35+
# Execute tests defined by the CMake configuration.
36+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
37+
run: ctest -C ${{env.BUILD_TYPE}}
38+
39+
- name: Install
40+
run: cmake --install ${{github.workspace}}/build
41+
42+
- name: Create Archive
43+
run: |
44+
cd ${{github.workspace}}
45+
tar cvf SonivoxV3.tar SonivoxV3
46+
47+
- name: Upload Artifacts
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: SonivoxV3-macos
51+
path: SonivoxV3.tar
52+
retention-days: 90
53+
overwrite: true

.github/workflows/cmake-win.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1313
BUILD_TYPE: RelWithDebInfo
14+
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3
1415

1516
jobs:
1617
build:
@@ -50,7 +51,7 @@ jobs:
5051
- name: '${{ matrix.icon }} Configure CMake'
5152
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5253
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
53-
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
54+
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}
5455

5556
- name: '${{ matrix.icon }} Build'
5657
# Build your program with the given configuration
@@ -61,3 +62,14 @@ jobs:
6162
# Execute tests defined by the CMake configuration.
6263
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
6364
run: ctest -C ${{env.BUILD_TYPE}}
65+
66+
- name: '${{ matrix.icon }} Install'
67+
run: cmake --install ${{github.workspace}}/build
68+
69+
- name: '${{ matrix.icon }} Upload Artifacts'
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: SonivoxV3-${{matrix.sys}}
73+
path: ${{env.INSTALL_LOCATION}}
74+
retention-days: 90
75+
overwrite: true

0 commit comments

Comments
 (0)