-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 1.11 KB
/
windows_xmake.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
name: Windows (xmake)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_with_xmake_on_windows:
runs-on: windows-2022
strategy:
matrix:
mode: [ Debug, Release ]
arch: [ x64 ]
# ICU4C is not supported on x86
# arch: [ x86, x64 ]
steps:
- uses: actions/checkout@v3
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
with:
arch: ${{ matrix.arch }}
- name: cache xmake
uses: actions/cache@v2
with:
path: |
${{github.workspace}}/build/.build_cache
C:\Users\runneradmin\AppData\Local\.xmake
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.2
actions-cache-folder: '.xmake-cache'
- name: Build
run: |
xmake config -vD --yes --mode=${{matrix.mode}} --arch=${{matrix.arch}}
xmake build --jobs=8
- name: Test
run: xmake run --group=tests