From 003e0152d23b88b506ea398cc01296b84123bc4d Mon Sep 17 00:00:00 2001 From: ADM228 <91823517+ADM228@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:38:42 +0300 Subject: [PATCH] separate examples --- .github/workflows/emulator.yml | 33 ++------------------------------- .github/workflows/examples.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/examples.yml diff --git a/.github/workflows/emulator.yml b/.github/workflows/emulator.yml index d623156..b874558 100644 --- a/.github/workflows/emulator.yml +++ b/.github/workflows/emulator.yml @@ -1,4 +1,4 @@ -name: ATtiny85APU emulator & examples +name: ATtiny85APU emulator on: [push, pull_request] @@ -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 \ No newline at end of file + run: cmake --build build --target t85apu_emu --config Release \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 0000000..18d4cad --- /dev/null +++ b/.github/workflows/examples.yml @@ -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 \ No newline at end of file