From 65d6eb96f2d16a0f233506967b6d2c854f7acab6 Mon Sep 17 00:00:00 2001 From: Matthew Colvin <35540398+MatthewColvin@users.noreply.github.com> Date: Fri, 28 Jul 2023 05:35:16 -0500 Subject: [PATCH] Add actions (#16) * add platformIO build action Change-Id: I945ec3be82dbc862525bf81540e1c6ef267be476 * add simulator build actions including x64 and x86 build targets * remove metaproj used for debugging the actions Change-Id: Ifec6796326c1f41bd0209a152efa7bb0502a9af7 --------- Co-authored-by: Matthew Colvin --- .github/workflows/build-platformio.yml | 25 +++++++++++++ .github/workflows/build-simulator.yml | 37 +++++++++++++++++++ .../LVGL.Simulator/LVGL.Simulator.vcxproj | 6 +++ 3 files changed, 68 insertions(+) create mode 100644 .github/workflows/build-platformio.yml create mode 100644 .github/workflows/build-simulator.yml diff --git a/.github/workflows/build-platformio.yml b/.github/workflows/build-platformio.yml new file mode 100644 index 0000000..4e1995c --- /dev/null +++ b/.github/workflows/build-platformio.yml @@ -0,0 +1,25 @@ +name: Build Omote Esp32 + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build PlatformIO Project + working-directory: ./Platformio + run: pio run diff --git a/.github/workflows/build-simulator.yml b/.github/workflows/build-simulator.yml new file mode 100644 index 0000000..510fd3c --- /dev/null +++ b/.github/workflows/build-simulator.yml @@ -0,0 +1,37 @@ +name: Build Omote Simulator + +on: [push] + +jobs: + build-x64: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.1 + 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/setup-msbuild@v1.1 + with: + msbuild-architecture: x86 + + - name: Build + working-directory: ./LVGL Simulator + run: MSBuild.exe ./LVGL.Simulator.sln -target:Build /p:Platform="x86" \ No newline at end of file diff --git a/LVGL Simulator/LVGL.Simulator/LVGL.Simulator.vcxproj b/LVGL Simulator/LVGL.Simulator/LVGL.Simulator.vcxproj index be10c4e..095b290 100644 --- a/LVGL Simulator/LVGL.Simulator/LVGL.Simulator.vcxproj +++ b/LVGL Simulator/LVGL.Simulator/LVGL.Simulator.vcxproj @@ -25,6 +25,12 @@ /utf-8 %(AdditionalOptions) LV_CONF_INCLUDE_SIMPLE;LV_LVGL_H_INCLUDE_SIMPLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MinSpace + stdcpp17 + $(SolutionDir)..\Platformio\include\OmoteUI + $(SolutionDir)..\Platformio\include\OmoteUI + $(SolutionDir)..\Platformio\include\OmoteUI + stdcpp17 + stdcpp17