Skip to content

Commit

Permalink
Update build-windows.yml
Browse files Browse the repository at this point in the history
Due to problems with cmake and Ninja builds, split the build phase and use Power Shell only for the final build.
  • Loading branch information
oyama authored Sep 5, 2024
1 parent 30362eb commit e28888a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- 'test_workflow'
- 'main'
env:
BUILD_TYPE: Release

jobs:
build:
runs-on: windows-latest
Expand Down Expand Up @@ -41,11 +38,16 @@ jobs:
working-directory: ${{github.workspace}}/pico-vfs
run: choco install .github/workflows/choco_packages.config

- name: Build firmware
- name: Create Build Environment
working-directory: ${{github.workspace}}/pico-vfs
run: cmake -E make_directory ${{github.workspace}}/pico-vfs/build

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/pico-vfs/build
run: PICO_SDK_PATH=../../pico-sdk cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release

- name: Build
working-directory: ${{github.workspace}}/pico-vfs/build
shell: pwsh
run: |
mkdir build
cd build
cmake .. -G Ninja -DPICO_SDK_PATH=../../pico-sdk -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPICO_BOARD=pico
cmake --build . --target integration
run: cmake --build . --target integration --config Release

0 comments on commit e28888a

Please sign in to comment.