-
Notifications
You must be signed in to change notification settings - Fork 113
111 lines (90 loc) · 2.61 KB
/
build-windows.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Build-windows
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
Tarball:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Make Source Tarball
run: |
cd ..
tar -cf source.tar scopehal-apps
gzip -S .gz -9 source.tar
mv source.tar.gz scopehal-apps/
- name: Upload Source
uses: actions/upload-artifact@v2
with:
name: glscopeclient-source
path: source.tar.gz
Windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: MINGW64
install: |
git
wget
mingw-w64-x86_64-toolchain
- name: Install Vulkan SDK
run: |
wget https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe
./VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
echo "/c/VulkanSDK/1.3.224.1/Bin" >> $GITHUB_PATH
- name: Setup Paths and Env for all steps
run: |
rm -f ~/.bash_profile
echo "PATH=/c/VulkanSDK/1.3.224.1/Bin:\$PATH" >> ~/.bash_profile
echo "export VK_SDK_PATH=/c/VulkanSDK/1.3.224.1" >> ~/.bash_profile
echo "export VULKAN_SDK=/c/VulkanSDK/1.3.224.1" >> ~/.bash_profile
- name: Build
run: |
cd msys2
MINGW_ARCH=mingw64 makepkg-mingw --noconfirm --noprogressbar -sCLf
- name: Test
if: ${{ false }} # Temporary disable Run Tests
run: |
pacman -U --noconfirm msys2/*.zst
glscopeclient --help
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: glscopeclient-windows
path: msys2/*.zst
- name: Build MSI / portable zip
run: |
mkdir build_msi
cd build_msi
cmake \
-G"Ninja" \
-DBUILD_TESTING=OFF \
-DWIXPATH="/c/Program Files (x86)/WiX Toolset v3.11/bin" \
../
cmake --build ./
- name: Upload Artifacts (portable zip)
uses: actions/upload-artifact@v2
with:
name: glscopeclient-windows-portable
path: build_msi/dist/windows_x64
- name: Upload Artifacts (MSI)
uses: actions/upload-artifact@v2
with:
name: glscopeclient-windows.msi
path: build_msi/dist/*.msi