Add switch workflow

This commit is contained in:
Luiz Pestana 2022-09-15 17:30:44 -03:00
parent d2154331ff
commit 999b88572b

39
.github/workflows/switch_examples.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Switch Examples
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- 'examples/**'
- '.github/workflows/switch_examples.yml'
pull_request:
branches: [ master ]
paths:
- 'src/**'
- 'examples/**'
- '.github/workflows/switch_examples.yml'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkita64:latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Library
run: |
cd src
make PLATFORM=PLATFORM_NX -j$(nproc)
cd ..
- name: Build Examples
run: |
cd examples
make PLATFORM=PLATFORM_NX -B -j$(nproc)
cd ..