Skip to content

Commit

Permalink
separate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Jul 22, 2024
1 parent f0f9213 commit 003e015
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/emulator.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ATtiny85APU emulator & examples
name: ATtiny85APU emulator

on: [push, pull_request]

Expand Down Expand Up @@ -27,33 +27,4 @@ jobs:

- 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
run: cmake --build build --target t85apu_emu --config Release
33 changes: 33 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ATtiny85APU examples

on: [push, pull_request]

jobs:
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

0 comments on commit 003e015

Please sign in to comment.