From 999b88572bb0485b40f6545e7a5a175ffa14a722 Mon Sep 17 00:00:00 2001 From: Luiz Pestana Date: Thu, 15 Sep 2022 17:30:44 -0300 Subject: [PATCH] Add switch workflow --- .github/workflows/switch_examples.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/switch_examples.yml diff --git a/.github/workflows/switch_examples.yml b/.github/workflows/switch_examples.yml new file mode 100644 index 000000000..fab659754 --- /dev/null +++ b/.github/workflows/switch_examples.yml @@ -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 ..