forked from XmacsLabs/mogan
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (80 loc) · 2.45 KB
/
ci-xmake-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
name: Build and Test on windows
on:
push:
branches: [ branch-1.2 ]
paths:
- 'src/**'
- '!src/Plugins/Macos/**'
- '!src/Plugins/Unix/**'
- 'tests/**'
- 'TeXmacs/plugins/goldfish/src/*'
- 'xmake.lua'
- 'xmake/packages.lua'
- 'xmake/research.lua'
- 'xmake/packages/**'
- 'xmake-requires.lock'
- '.github/workflows/ci-xmake-windows.yml'
pull_request:
branches: [ branch-1.2 ]
paths:
- 'src/**'
- '!src/Plugins/Macos/**'
- '!src/Plugins/Unix/**'
- 'tests/**'
- 'TeXmacs/plugins/goldfish/src/*'
- 'xmake.lua'
- 'xmake/packages.lua'
- 'xmake/research.lua'
- 'xmake/packages/**'
- 'xmake-requires.lock'
- '.github/workflows/ci-xmake-windows.yml'
workflow_dispatch:
jobs:
windowsbuild:
# mingw-w64 8.1.0 is installed on windows-2019
runs-on: windows-2019
timeout-minutes: 45
if: always()
env:
# Force xmake to a specific folder (for cache)
XMAKE_GLOBALDIR: "${{ github.workspace }}\\.xmake-global"
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.9.3
- name: update repo
run: |
xrepo update-repo
- name: Install pandoc
run: choco install pandoc -y
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: cache packages from xrepo
uses: actions/cache@v2
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: ${{ runner.os }}-${{ runner.arch }}-xrepo-${{ hashFiles('xmake-requires.lock') }}
- name: cache xmake
uses: actions/cache@v2
with:
path: |
${{ github.workspace }}/build/.build_cache
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('xmake-requires.lock') }}
- name: config
run: xmake config --policies=build.ccache --yes -vD -m releasedbg --plat=windows
- name: build
run: xmake build --yes -vD research && xmake build --yes -vD --group=tests
- name: test
run: |
xmake run --yes --verbose --diagnosis --group=tests
- name: install
run: |
xmake install research
- name: Scheme tests
run: xmake run --yes -vD --group=scheme_tests
- name: integration test in scheme
run: xmake run --yes -vD --group=integration_tests
env:
QT_QPA_PLATFORM: offscreen