work around libgit2 randomly changing the constness of arguments to g… #1509
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: Build Windows binaries | |
on: | |
push: | |
branches: | |
- '**' | |
- '!appveyor-*' | |
- '!freebsd-*' | |
- '!pr-review*' | |
tags: [ '*' ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-win32: | |
runs-on: windows-latest | |
steps: | |
- name: Check tag | |
if: startsWith(github.ref, 'refs/tags/') | |
run: echo "Building tag ${{ github.ref }}" | |
- uses: actions/checkout@v3 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-pkgconf | |
mingw-w64-x86_64-gtkmm3 | |
mingw-w64-x86_64-sqlite3 | |
mingw-w64-x86_64-zeromq | |
mingw-w64-x86_64-cppzmq | |
mingw-w64-x86_64-glm | |
mingw-w64-x86_64-libgit2-winhttp | |
mingw-w64-x86_64-podofo | |
mingw-w64-x86_64-libarchive | |
mingw-w64-x86_64-curl-winssl | |
mingw-w64-x86_64-jq | |
mingw-w64-x86_64-meson | |
mingw-w64-x86_64-cmake | |
zip | |
unzip | |
make | |
git | |
dos2unix | |
rsync | |
- name: Install Opencascade lite | |
shell: msys2 {0} | |
run: | | |
wget https://github.com/carrotIndustries/mingw-opencascade-lite/releases/download/v7.7.2-2/mingw-w64-x86_64-opencascade-lite-7.7.2-2-any.pkg.tar.zst | |
pacman -U mingw-w64-x86_64-opencascade-lite-7.7.2-2-any.pkg.tar.zst --noconfirm | |
- name: Build | |
shell: msys2 {0} | |
run: | | |
meson setup build | |
meson compile -C build | |
- name: Make dist | |
shell: msys2 {0} | |
run: ./make_bindist.sh | |
- name: Check for missing DLLs | |
shell: msys2 {0} | |
run: ./check_dll.sh | |
- name: set artifact name | |
shell: msys2 {0} | |
run: echo "artifact_name=horizon-win64-$(date +%Y-%m-%d-%H%M)-$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV | |
- name: deploy to selfnet mirror | |
if: github.event_name != 'pull_request' | |
shell: msys2 {0} | |
run: | | |
RSYNC_PASSWORD=${{ secrets.RSYNC_PASSWORD }} rsync -avz --stats dist/*.zip rsync://[email protected]/horizon-eda/win64-ci/${{ env.artifact_name }}.zip | |
echo "::notice title=Download this build::Get the zip archive from the selfnet mirror: https://mirror.selfnet.de/horizon-eda/win64-ci/${{ env.artifact_name }}.zip" | |
- uses: actions/upload-artifact@v4 | |
if: github.event_name == 'pull_request' | |
with: | |
name: ${{ env.artifact_name }} | |
path: dist/*.zip | |
- name: Build MSI | |
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/win32-installer' | |
run: | | |
$env:PATH += ";$($Env:WIX)\bin" | |
cd wix | |
.\install.bat | |
- uses: actions/upload-artifact@v4 | |
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/win32-installer' | |
with: | |
name: horizon-win64-installer | |
path: wix/*.msi |