-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.1 KB
/
build_win.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
name: Statick on windows-latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
KUL_GIT_CO: --depth 10 # is added to git clone calls
MKN_CL_PREFERRED: 1
jobs:
build:
name: Python ${{ matrix.python-version }}
runs-on: windows-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: bash -c "rm /bin/link" # interferes with cl/link.exe
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- shell: cmd
run: |
bash -c "curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe"
bash -c "(cd $(dirname $(which python)); cp python.exe python3.exe)"
python3 -m pip install pip -U
python3 -m pip install wheel -U
python3 -m pip install -r res/pip_deps.txt -U
bash -c 'PATH="$PWD:$PATH" XTRA="-a -std:c++17" ./test.sh'