-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 1.61 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
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
name: windows
on:
push:
branches: [main]
paths-ignore:
- "**.md"
- "**.pdf"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "**.pdf"
jobs:
build:
env:
buildDir: "${{ github.workspace }}/build/"
name: build on windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
- name: install dependencies
run: |
choco install ccache ninja
- name: Get current date
run: |
echo "DATE=$(Get-Date -Format yyyy-MM-dd)" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: setup ccache
run: |
ccache --set-config=cache_dir=${{ github.workspace }}/.ccache
ccache --set-config=max_size=5G
ccache --set-config=compression=true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.6.3
modules: "qtmultimedia"
cache: true
- name: cache ccache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.ccache
key: ${{ runner.os }}-build-${{ env.DATE }}
restore-keys: |
${{ runner.os }}-build-
- name: Configure & Build
run: .\scripts\dist_win.bat
- uses: actions/upload-artifact@v4
with:
name: arclight-windows-x64
path: bin/*
- name: ccache stats
run: |
ccache -s