From 16f4a959517e6767d71f583f7e9d69b6685fee94 Mon Sep 17 00:00:00 2001 From: Andreas Taylor Date: Thu, 24 Aug 2023 16:37:11 -0500 Subject: [PATCH] Update for nektos/act compatibility --- .github/workflows/arduino-compile-sketches.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/arduino-compile-sketches.yml b/.github/workflows/arduino-compile-sketches.yml index 0873f31..e2fc1bf 100644 --- a/.github/workflows/arduino-compile-sketches.yml +++ b/.github/workflows/arduino-compile-sketches.yml @@ -4,12 +4,24 @@ name: Arduino Compile Sketches on: push: + workflow_dispatch: jobs: compile-sketches: runs-on: ubuntu-latest steps: - uses: actions/checkout@main + - name: setup-python (when running locally for nektos/act compatibility) + if: ${{ env.ACT }} + uses: actions/setup-python@v4 + with: + python-version: '>=3.11' + - name: Install Poetry (when running locally for nektos/act compatibility) + if: ${{ env.ACT }} + uses: snok/install-poetry@v1 + - name: Install pipx (when running locally for nektos/act compatibility) + if: ${{ env.ACT }} + run: pip install pipx - uses: arduino/compile-sketches@v1 with: fqbn: 'energia:msp430:MSP-EXP430G2553LP'