Skip to content

Modify ci.yml 'on' to run on pull request #1

Modify ci.yml 'on' to run on pull request

Modify ci.yml 'on' to run on pull request #1

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
pull_request:
branches:
- main
- next
env:
CMAKE_BUILD_PARALLEL_LEVEL: 3 # Use up to 3 cpus to build juceaide, etc
concurrency:
group: ${{ github.workflow }}.${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
BuildAndTest:
name: ${{ matrix.os }} ${{ matrix.app }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
app: [ member_enabled, member_disabled, unique_ptr_enabled, unique_ptr_disabled ]
os: [ macos-latest, windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Configure
run: cmake -B Builds -DTARGET_NAME:STRING=${{ matrix.app }}
- name: Build
run: cmake --build Builds --parallel 4
- name: Run
if: ${{ matrix.os == 'macos-latest' }}
working-directory: Builds/${{ matrix.app }}_artefacts
timeout-minutes: 2
run: |
ls -ahl
${{ matrix.app }}.app/Contents/MacOS/${{ matrix.app }} &
- name: Run
if: ${{ matrix.os == 'windows-latest' }}
working-directory: Builds/${{ matrix.app }}_artefacts
timeout-minutes: 2
run: |
ls -ahl
./Debug/${{ matrix.app }}.exe &
- uses: OrbitalOwen/[email protected]
if: ${{ matrix.os == 'windows-latest' }}
with:
file-name: ${{ matrix.os }}-${{matrix.app}}.jpg