diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/core-multi.yml similarity index 80% rename from .github/workflows/cmake-multi-platform.yml rename to .github/workflows/core-multi.yml index 871f0f8..a555c93 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/core-multi.yml @@ -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: @@ -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 diff --git a/.github/workflows/juce-macos.yml b/.github/workflows/juce-macos.yml new file mode 100644 index 0000000..584b13b --- /dev/null +++ b/.github/workflows/juce-macos.yml @@ -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 diff --git a/.github/workflows/juce-ubuntu.yml b/.github/workflows/juce-ubuntu.yml index b36e5c4..3c4f73e 100644 --- a/.github/workflows/juce-ubuntu.yml +++ b/.github/workflows/juce-ubuntu.yml @@ -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: diff --git a/.github/workflows/juce-windows.yml b/.github/workflows/juce-windows.yml index 0aaee24..9ec0e81 100644 --- a/.github/workflows/juce-windows.yml +++ b/.github/workflows/juce-windows.yml @@ -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: