Skip to content

Commit

Permalink
move macos builds to it's own thing, and let all builds run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ulph committed Apr 17, 2024
1 parent 2afeb6e commit de348f2
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms

on:
Expand All @@ -17,22 +15,17 @@ jobs:
fail-fast: true

matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/juce-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: JUCE artifacts (macos)

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

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

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --build-config ${{env.BUILD_TYPE}} --output-on-failure

- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: |
${{github.workspace}}/build/JUCE/PhasePhdgr_artefacts/Release
${{github.workspace}}/build/JUCE/PhasePhdgrFx_artefacts/Release
retention-days: 2
4 changes: 4 additions & 0 deletions .github/workflows/juce-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --build-config ${{env.BUILD_TYPE}} --output-on-failure

- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/juce-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --build-config ${{env.BUILD_TYPE}} --output-on-failure

- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit de348f2

Please sign in to comment.