Use recommended icon sizes for the Windows icon file #616
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
name: Windows | |
on: | |
push: | |
branches-ignore: | |
- '**/sources/**' | |
- '**/linux/**' | |
- '**/macos/**' | |
paths-ignore: | |
- '.github/workflows/sources.yml' | |
- '.github/workflows/linux.yml' | |
- '.github/workflows/macos.yml' | |
- 'data/artwork/**' | |
- 'data/packaging/linux/**' | |
- 'data/packaging/macos/**' | |
- 'data/platform/linux/**' | |
- 'data/platform/macos/**' | |
- 'docs/**' | |
- '.clang-format' | |
- '.git-blame-ignore-revs' | |
- '.git-properties' | |
- 'LICENSE' | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '.github/workflows/sources.yml' | |
- '.github/workflows/linux.yml' | |
- '.github/workflows/macos.yml' | |
- 'data/artwork/**' | |
- 'data/packaging/linux/**' | |
- 'data/packaging/macos/**' | |
- 'data/platform/linux/**' | |
- 'data/platform/macos/**' | |
- 'docs/**' | |
- '.clang-format' | |
- '.git-blame-ignore-revs' | |
- '.git-properties' | |
- 'LICENSE' | |
- '**.md' | |
jobs: | |
installer: | |
name: Installer | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { sys: mingw32, arch: i686, pkg: i686 } | |
- { sys: ucrt64, arch: x86_64, pkg: ucrt-x86_64 } | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
with: | |
fetch-tags: true | |
submodules: recursive | |
- uses: msys2/setup-msys2@v2.22.0 | |
with: | |
msystem: ${{ matrix.sys }} | |
release: false | |
update: false | |
install: >- | |
mingw-w64-${{ matrix.pkg }}-toolchain | |
mingw-w64-${{ matrix.pkg }}-cmake | |
mingw-w64-${{ matrix.pkg }}-make | |
mingw-w64-${{ matrix.pkg }}-wxWidgets3.2 | |
mingw-w64-${{ matrix.pkg }}-boost | |
base-devel | |
git | |
- name: Configure msys2 environment | |
shell: msys2 {0} | |
run: | | |
git config --global core.autocrlf true | |
echo "project_version=`sed -n -E -e "/^project\(wxFormBuilder[[:space:]]+VERSION[[:space:]]+(.*)[[:space:]]+LANGUAGES.*$/{s//-\1/p;q}" CMakeLists.txt `" >> $GITHUB_ENV | |
- name: Create build system | |
shell: msys2 {0} | |
run: | | |
cmake -S . -B _build -G "MSYS Makefiles" --install-prefix "$PWD/_install" -DCMAKE_BUILD_TYPE=Release | |
- name: Package build system | |
if: ${{ contains(github.ref, '/build/') }} | |
shell: cmd | |
run: | | |
7z a -tzip -bb1 wxFormBuilder-Windows-${{ matrix.pkg }}-build.zip _build | |
- name: Build | |
shell: msys2 {0} | |
run: | | |
cmake --build _build --config Release -j `nproc` | |
- name: Test stage | |
shell: msys2 {0} | |
run: | | |
_build\\stage\\wxFormBuilder.exe -v | |
_build\\stage\\wxFormBuilder.exe -g test\\wxfbTest.fbp | |
- name: Install | |
shell: msys2 {0} | |
run: | | |
cmake --install _build --config Release --strip | |
- name: Test install | |
shell: cmd | |
run: | | |
_install\\wxFormBuilder.exe -v | |
_install\\wxFormBuilder.exe -g test\\wxfbTest.fbp | |
- name: Create archive | |
shell: cmd | |
run: | | |
cd _install | |
7z a -tzip -bb1 "..\\wxFormBuilder${{ env.project_version }}-${{ matrix.pkg }}.zip" . | |
- name: Create installer | |
shell: cmd | |
run: | | |
ISCC.exe /DArch=${{ matrix.arch }} /O. data\\packaging\\windows\\wxFormBuilder.iss | |
- uses: actions/upload-artifact@v4.3.0 | |
if: ${{ contains(github.ref, '/build/') }} | |
with: | |
name: Windows Build Debugging ${{ matrix.pkg }} | |
path: | | |
wxFormBuilder-*-build.zip | |
- uses: actions/upload-artifact@v4.3.0 | |
with: | |
name: Windows Archive ${{ matrix.pkg }} | |
path: | | |
wxFormBuilder-*.zip | |
!wxFormBuilder-*-build.zip | |
- uses: actions/upload-artifact@v4.3.0 | |
with: | |
name: Windows Installer ${{ matrix.pkg }} | |
path: | | |
wxFormBuilder-*.exe |