OMOTE/.github/workflows/build-platformio-ubuntu.yml

58 lines
798 B
YAML
Raw Normal View History

2024-03-12 18:19:23 -04:00
name: Ubuntu build
2024-03-12 14:57:38 -04:00
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
2024-03-12 16:58:47 -04:00
2024-03-12 17:35:00 -04:00
2024-03-12 14:57:38 -04:00
steps:
2024-03-12 16:14:36 -04:00
- uses: actions/checkout@v4
- uses: actions/cache@v4
2024-03-12 14:57:38 -04:00
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
2024-03-12 16:14:36 -04:00
- uses: actions/setup-python@v5
2024-03-12 14:57:38 -04:00
with:
2024-03-12 16:14:36 -04:00
python-version: "3.12"
2024-03-12 16:58:47 -04:00
2024-03-12 14:57:38 -04:00
- name: Install SDL2
run: sudo apt install -y libsdl2-dev
2024-03-12 16:58:47 -04:00
2024-03-12 17:15:12 -04:00
2024-03-12 17:35:00 -04:00
2024-03-13 10:01:47 -04:00
2024-03-12 16:58:47 -04:00
- name: Install PlatformIO Core
run: pip install --upgrade platformio
2024-03-12 14:57:38 -04:00
- name: Build PlatformIO env:ESP32
working-directory: ./Platformio
run: pio run -e esp32
2024-03-18 15:20:59 -04:00
- name: Build PlatformIO env:linux_64bit
2024-03-12 14:57:38 -04:00
working-directory: ./Platformio
2024-03-18 15:20:59 -04:00
run: pio run -e linux_64bit