-
Notifications
You must be signed in to change notification settings - Fork 28
96 lines (79 loc) · 1.97 KB
/
wheel_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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Wheel build
on:
pull_request:
branches:
- master
push:
branches:
- dev
workflow_dispatch:
jobs:
build_nrtest_plugin:
name: Build nrtest-swmm plugin
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./nrtest-swmm
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build wheel
run: |
pip install wheel
python setup.py bdist_wheel
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: nrtest-swmm-wheel
path: nrtest-swmm/dist/*.whl
build_swmm_lib:
name: Build swmm library
runs-on: windows-2019
defaults:
run:
shell: bash
working-directory: swmm-toolkit/swmm-solver/ci-tools/linux
steps:
- name: Checkout swmm-python repo
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout ci-tools repo
uses: actions/checkout@v3
with:
repository: michaeltryby/ci-tools
ref: master
path: swmm-toolkit/swmm-solver/ci-tools
- name: Build
run: ./make.sh -g "Visual Studio 16 2019"
- name: Upload dependency
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: swmm-lib
path: swmm-toolkit/swmm-solver/upload/*.*
build_swmm_wheel:
name: Build swmm-toolkit wheel
needs: [ build_swmm_lib ]
runs-on: windows-2019
defaults:
run:
shell: bash
working-directory: ./swmm-toolkit
steps:
- name: Checkout swmm-python repo
uses: actions/checkout@v3
with:
submodules: false
- name: Download dependency
uses: actions/download-artifact@v3
with:
name: swmm-lib
path: ./swmm-toolkit/extern
- name: Build wheel in virtual env
run: |
ls extern