Skip to content

version 2.6.0

version 2.6.0 #1476

Workflow file for this run

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-oce
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: 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@v2-preview
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@v2-preview
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/win32-installer'
with:
name: horizon-win64-installer
path: wix/*.msi