Skip to content

Update build-windows.yml #31

Update build-windows.yml

Update build-windows.yml #31

Workflow file for this run

name: Build on Windows
on:
workflow_dispatch:
push:
branches:
- 'test_workflow'
- 'main'
jobs:
build:
runs-on: windows-latest
steps:
- name: Clean workspace
shell: bash
run: |
echo "Cleaning up previous run"
rm -rf "${{ github.workspace }}/pico-sdk"
rm -rf "${{ github.workspace }}/pico-vfs"
- name: Checkout pico-sdk
uses: actions/checkout@v4
with:
repository: raspberrypi/pico-sdk
ref: master
path: pico-sdk
- name: Checkout pico-sdk submodules
working-directory: ${{github.workspace}}/pico-sdk
run: git submodule update --init
- name: Checkout pico-vfs
uses: actions/checkout@v4
with:
path: pico-vfs
- name: Checkout pico-vfs submodules
working-directory: ${{github.workspace}}/pico-vfs
run: git submodule update --init
- name: Install dependencies
working-directory: ${{github.workspace}}/pico-vfs
run: choco install .github/workflows/choco_packages.config
- 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: cmake --build . --target integration --config Release