-
-
Notifications
You must be signed in to change notification settings - Fork 17
60 lines (47 loc) · 1.14 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
workflow_dispatch:
push:
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.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: macOS
os: macos-latest
binary: dummy.app/Contents/MacOS/dummy &
- name: Windows
os: windows-latest
binary: ./Debug/dummy.exe &
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Configure
run: cmake -B Builds
- name: Build
run: cmake --build Builds --parallel 4
- name: Run
working-directory: Builds/dummy_artefacts
timeout-minutes: 1
run: |
ls -ahl
${{ matrix.binary }}
- uses: OrbitalOwen/desktop-screenshot-action@0.1
with:
file-name: ${{ matrix.name }}.jpg