-
Notifications
You must be signed in to change notification settings - Fork 83
81 lines (79 loc) · 2.51 KB
/
win32.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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-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