forked from diffCheckOrg/diffCheck
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (56 loc) · 1.65 KB
/
yak-build.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
name: yak-build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-ghusers:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]
- name: Install CPython and pythonnet package
run: |
choco install python --version=3.9.10
python -m pip install pythonnet==3.0.3
python -m pip install invoke
- name: create the build folder
run: mkdir build
- name: Flag the ghuser codes with the correct package version
run: invoke flagerize
- name: Invoke the componentizer
run: |
mkdir build/gh
invoke ghcomponentize
- uses: actions/upload-artifact@v4
with:
name: ghuser-components
path: build/gh
build-yak-package:
runs-on: windows-latest
needs: build-ghusers
steps:
- uses: actions/checkout@v2
- name: Install Python and pythonnet
uses: actions/setup-python@v2
with:
python-version: '3.9.10'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
pip install pythonnet
- name: Download the ghuser components
uses: actions/download-artifact@v4
with:
name: ghuser-components
path: build/gh
- name: Build the yak package
run: invoke yakerize
## for debug only
# - name: Save artifact the yak package as an artifact
# uses: actions/upload-artifact@v4
# with:
# name: yak_package_artifact
# path: build/yak/*.yak