Skip to content

Commit

Permalink
Test a windows build release
Browse files Browse the repository at this point in the history
  • Loading branch information
protik09 committed Apr 8, 2024
1 parent 6f0ad58 commit 94fd7ef
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/test-github-actions-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test Github Actions

on:
push:
branches: [ main ]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
winget install wget cmake -y
winget install --id Arm.ArmGnuToolchain -y
wget https://github.com/raspberrypi/pico-setup-windows/releases/latest/download/pico-setup-windows-x64-standalone.exe
pico-setup-windows-x64-standalone.exe -y
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install RP2040 SDK
run: |
git clone https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
git submodule update --init
echo "PICO_SDK_PATH=$(pwd)" >> $GITHUB_ENV
- name: Configure CMake
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DPICO_PLATFORM=rp2040 -DPICO_SDK_PATH=$PICO_SDK_PATH
- name: Build firmware
run: |
cd build
make
- name: Generate release files
run: |
cd build
arm-none-eabi-objcopy -O ihex Coremark-RP2040.elf Coremark-RP2040.hex
arm-none-eabi-objcopy -O binary Coremark-RP2040.elf Coremark-RP2040.bin
$PICO_SDK_PATH/build/elf2uf2/elf2uf2 Coremark-RP2040.elf Coremark-RP2040.uf2

0 comments on commit 94fd7ef

Please sign in to comment.