-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.92 KB
/
emulator.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
name: ATtiny85APU emulator & examples
on: [push, pull_request]
jobs:
emulator:
runs-on: ${{ matrix.platform.os }}
name: Emulator build on ${{ matrix.platform.name }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows VS2019, os: windows-2019 }
- { name: Windows VS2022, os: windows-2022 }
- { name: Linux GCC, os: ubuntu-latest }
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { name: MacOS XCode, os: macos-latest }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
shell: bash
run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install ${{matrix.platform.flags}} -DBUILD_SHARED_LIBS=FALSE
- name: Build
shell: bash
run: cmake --build build --target t85apu_emu --config Release
examples:
runs-on: ${{ matrix.platform.os }}
name: Build example for ${{ matrix.example.name }} on ${{ matrix.platform.name }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows VS2019, os: windows-2019 }
- { name: Windows VS2022, os: windows-2022 }
- { name: Linux GCC, os: ubuntu-latest }
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { name: MacOS XCode, os: macos-latest }
example:
- { name: C, target: example_c }
- { name: C++, target: example_cpp }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
shell: bash
run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install ${{matrix.platform.flags}} -DBUILD_SHARED_LIBS=FALSE
- name: Build
shell: bash
run: cmake --build build --target ${{ matrix.example.target }} --config Release