-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (44 loc) · 1.21 KB
/
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
name: Compile on Windows
on:
push:
branches: [ develop ]
paths-ignore:
- ".gitignore"
- "README.md"
- "CHANGELOG.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/ios.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
cache: 'true'
version: '6.8.*'
- name: Configure
run: |
cmake -E make_directory build
qt-cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_INSTALL_PREFIX:STRING=${{ github.workspace }}\addTimes -S . -B build
- name: Compile
run: |
cmake --build build
- name: Install
run: |
cmake --build build --target install
- name: Package
run: |
powershell Compress-Archive addTimes addTimes-windows64.zip
- name: Upload to developerBuilds
run: |
gh release upload --clobber developerBuilds addTimes-windows64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}