Merge pull request #15 from niwciu/develop #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run PushButton Switch Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
pushbutton_switch_test_running: | |
name: PushButton Test RUN | |
runs-on: windows-latest | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
with: | |
submodules: recursive | |
- name: arm-none-eabi-gcc | |
uses: ryanwinter/arm-none-eabi-gcc@master | |
with: | |
release: '10-2021.10' | |
- name: Install Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Build binary | |
working-directory: test/pushbutton | |
run: | | |
mkdir out | |
cmake -Bout -GNinja | |
cmake --build out | |
- name: List files | |
working-directory: test/pushbutton/out | |
run: dir | |
- name: Run pushbutton tests | |
working-directory: test/pushbutton/out | |
run: ./pushbutton_test.exe -v | |
Switch_test_running: | |
name: Switch Test RUN | |
runs-on: windows-latest | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.0.0 | |
with: | |
submodules: recursive | |
- name: arm-none-eabi-gcc | |
uses: ryanwinter/arm-none-eabi-gcc@master | |
with: | |
release: '10-2021.10' | |
- name: Install Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Build binary | |
working-directory: test/switch | |
run: | | |
mkdir out | |
cmake -Bout -GNinja | |
cmake --build out | |
- name: List files | |
working-directory: test/switch/out | |
run: dir | |
- name: Run inputs tests | |
working-directory: test/switch/out | |
run: ./switch_test.exe -v | |
# template_2_test_running: | |
# name: template_2 Test RUN | |
# runs-on: windows-latest | |
# # strategy: | |
# # matrix: | |
# # os: [ubuntu-latest, windows-latest] | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4.0.0 | |
# with: | |
# submodules: recursive | |
# - name: arm-none-eabi-gcc | |
# uses: ryanwinter/arm-none-eabi-gcc@master | |
# with: | |
# release: '10-2021.10' | |
# - name: Install Ninja | |
# uses: seanmiddleditch/gha-setup-ninja@v3 | |
# - name: Build binary | |
# working-directory: test/template_2 | |
# run: | | |
# mkdir out | |
# cmake -Bout -GNinja | |
# cmake --build out | |
# - name: List files | |
# working-directory: test/template_2/out | |
# run: dir | |
# - name: Run inputs tests | |
# working-directory: test/template_2/out | |
# run: ./template_2_test.exe -v |