Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/choco_packages.config

This file was deleted.

26 changes: 22 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,40 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
generator: ["Ninja", "Unix Makefiles"]
generator: ["Ninja", "Unix Makefiles", "Visual Studio 17 2022"]
mbedtls: ["mbedtls", ""]
libusb: ["libusb", ""]
compile: ["compile", ""]
exclude:
- os: 'windows-latest'
generator: "Unix Makefiles"
- os: 'ubuntu-latest'
generator: "Visual Studio 17 2022"
- os: 'macos-latest'
generator: "Visual Studio 17 2022"
- libusb: ""
compile: "compile"
- os: 'windows-latest'
# only precompiled ELFs supported for Windows MSVC
compile: "compile"
generator: "Visual Studio 17 2022"
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install mingw (Windows mingw)
if: runner.os == 'Windows' && matrix.generator == 'Ninja'
run: |
choco install -y mingw --version=12.2.0
- name: Install arm-none-eabi-gcc (Windows & MacOS)
if: runner.os == 'Windows' || runner.os == 'macOS'
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: 14.3.Rel1
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
choco install -y .github/workflows/choco_packages.config
curl -L https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.7z -o libusb.7z
7z x libusb.7z -olibusb
ls libusb
Expand All @@ -45,7 +61,6 @@ jobs:
if: runner.os == 'macOS'
run: |
brew install libusb ninja
brew install --cask gcc-arm-embedded

- name: Install dependencies (Linux)
if: runner.os == 'Linux'
Expand All @@ -62,7 +77,7 @@ jobs:
run: |
cmake -S . -B build -G "${{ matrix.generator }}" -D PICO_SDK_PATH="${{ github.workspace }}/pico-sdk" ${{ !matrix.libusb && '-D PICOTOOL_NO_LIBUSB=1' || '' }} ${{ matrix.compile && '-D USE_PRECOMPILED=false' || '' }}
cmake --build build
${{ runner.os != 'Windows' && 'sudo' || '' }} cmake --install build
${{ runner.os != 'Windows' && 'sudo' || '' }} cmake --install build --config Debug
- name: Add to path (Windows)
if: runner.os == 'Windows'
run: echo "C:\Program Files (x86)\picotool\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Expand All @@ -71,8 +86,11 @@ jobs:
run: |
picotool help
curl -L https://datasheets.raspberrypi.com/soft/blink.uf2 -o blink.uf2
unzip -o blink.uf2 || true
curl -L https://datasheets.raspberrypi.com/soft/hello_world.uf2 -o hello_world.uf2
unzip -o hello_world.uf2 || true
curl -L https://datasheets.raspberrypi.com/soft/flash_nuke.uf2 -o flash_nuke.uf2
unzip -o flash_nuke.uf2 || true
picotool info -a blink.uf2
picotool info -a hello_world.uf2
picotool info -a flash_nuke.uf2
Expand Down
8 changes: 8 additions & 0 deletions model/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
#include "rp2350_a3_rom_end.h"
#include "rp2350_a4_rom_end.h"

// tsk namespace is polluted on windows
#ifdef _WIN32
#undef min
#undef max

#define _CRT_SECURE_NO_WARNINGS
#endif

enum memory_type {
rom,
flash,
Expand Down
Loading