Build All Windows #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Manually started action to build Picotool/OpenOCD for Windows and upload to an artifact | |
name: Build All Windows | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
matrix: | |
include: | |
- { sys: mingw64, env: x86_64 } | |
- { sys: mingw32, env: i686 } | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
install: development mingw-w64-${{matrix.env}}-make git mingw-w64-${{matrix.env}}-toolchain zip | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build mklittlefs ${{matrix.env}} | |
run: | | |
rm -f *.json *.gz *.zip | |
pfx=${{matrix.env}}-w64-mingw32 | |
AHOST=${{matrix.env}}-mingw32 TARGET_OS=windows CC=${pfx}-gcc CXX=${pfx}-g++ STRIP=echo mingw32-make clean mklittlefs.exe BUILD_CONFIG_NAME="-arduino" CPPFLAGS="" | |
- name: Package mklittlefs ${{matrix.env}} | |
run: | | |
mkdir -p tmp/mklittlefs | |
mv mklittlefs.exe tmp/mklittlefs/. | |
cd tmp | |
zip -rq ../${{matrix.env}}-w64-mingw32-mklittlefs.zip mklittlefs | |
cd .. | |
rm -rf tmp | |
- name: Upload mklittlefs ${{matrix.env}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.env}}-w64-mingw32-mklittlefs.zip | |
path: ${{matrix.env}}-w64-mingw32-mklittlefs.zip |