forked from fasiondog/hikyuu
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.2 KB
/
windows_python.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
name: win-python-build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-2022]
arch: [x64] #, arm64]
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-python-${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Cache windows packages
id: cache-xmake-windows
uses: actions/cache@v3
env:
cache-name: cache-windows-modules
with:
path: /Users/%USERNAME/.xmake
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
actions-cache-folder: '.xmake-cache'
- name: configure
shell: cmd
run: |
xmake f -y --pyver=3.11
- name: build
shell: cmd
run: |
xmake -b core