From 05856afc6ffff8bf7cf1704e9218acf999cbb0ba Mon Sep 17 00:00:00 2001 From: KlausMu Date: Sat, 7 Dec 2024 10:41:18 +0100 Subject: [PATCH] added workflow for macOS build --- .github/workflows/build-platformio-macos.yml | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/build-platformio-macos.yml diff --git a/.github/workflows/build-platformio-macos.yml b/.github/workflows/build-platformio-macos.yml new file mode 100644 index 00000000..c19c307a --- /dev/null +++ b/.github/workflows/build-platformio-macos.yml @@ -0,0 +1,61 @@ +name: macOS build + +on: [push,workflow_dispatch] + +jobs: + build: + runs-on: macos-latest + + + + + + + + + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install SDL2 + run: | + brew install sdl2 + + + + + + + + + + + + + + + + + + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build PlatformIO env:ESP32 + working-directory: ./Platformio + run: pio run -e esp32 + + - name: Build PlatformIO env:ESP32_testboard + working-directory: ./Platformio + run: pio run -e esp32_testboard + + - name: Build PlatformIO env:macOS + working-directory: ./Platformio + run: pio run -e macOS