Skip to content

Commit

Permalink
update actions for sim and hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewColvin committed Aug 6, 2023
1 parent eccbd81 commit 5b24e7f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:

- name: Build PlatformIO Project
working-directory: ./Platformio
run: pio run
run: pio run --target esp32
69 changes: 47 additions & 22 deletions .github/workflows/build-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,60 @@ name: Simulator Build
on: [push]

jobs:
build-x64:

runs-on: windows-latest
build-ubuntu-x64:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
msbuild-architecture: x64
python-version: "3.9"
- name: Install PlatformIO Core
run: pip install --upgrade platformio

# You can test your matrix by printing the current dotnet version
- name: Build
working-directory: ./LVGL Simulator
run: MSBuild.exe ./LVGL.Simulator.sln -target:Build /p:Platform="x64"
- name: Install SDL2
run : sudo apt-get install -y libsdl2-dev

build-x86:
- name: Build PlatformIO Project
working-directory: ./Platformio
run: pio run --target x64sim

runs-on: windows-latest

# build-x64:

steps:
- uses: actions/checkout@v3
# runs-on: windows-latest

- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
# steps:
# - uses: actions/checkout@v3

# - name: Add msbuild to PATH
# uses: microsoft/[email protected]
# with:
# msbuild-architecture: x64

# # You can test your matrix by printing the current dotnet version
# - name: Build
# working-directory: ./LVGL Simulator
# run: MSBuild.exe ./LVGL.Simulator.sln -target:Build /p:Platform="x64"

# build-x86:

# runs-on: windows-latest

# steps:
# - uses: actions/checkout@v3

# - name: Add msbuild to PATH
# uses: microsoft/[email protected]
# with:
# msbuild-architecture: x86

- name: Build
working-directory: ./LVGL Simulator
run: MSBuild.exe ./LVGL.Simulator.sln -target:Build /p:Platform="x86"
# - name: Build
# working-directory: ./LVGL Simulator
# run: MSBuild.exe ./LVGL.Simulator.sln -target:Build /p:Platform="x86"

0 comments on commit 5b24e7f

Please sign in to comment.