@@ -20,16 +20,17 @@ jobs:
20
20
fail-fast : false
21
21
matrix :
22
22
os : [macos-latest, ubuntu-latest, windows-latest]
23
+ python-version : ['3.7', '3.8', '3.9', '3.10', '3.11']
23
24
24
25
steps :
25
26
- uses : actions/checkout@v3
26
27
with :
27
28
fetch-depth : 1
28
29
29
30
- uses : actions/setup-python@v4
30
- name : Install Python 3.9
31
+ name : Install Python ${{ matrix.python-version }}
31
32
with :
32
- python-version : 3.9
33
+ python-version : ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}
33
34
34
35
- name : Update pip
35
36
run : |
@@ -83,17 +84,22 @@ jobs:
83
84
84
85
max-cost-checks :
85
86
name : Cost checks
86
- runs-on : ubuntu-latest
87
+ runs-on : ${{ matrix.os }}
88
+ strategy :
89
+ fail-fast : false
90
+ matrix :
91
+ os : [macos-latest, ubuntu-latest, windows-latest]
92
+ python-version : ['3.7', '3.8', '3.9', '3.10', '3.11']
87
93
88
94
steps :
89
95
- uses : actions/checkout@v3
90
96
with :
91
97
fetch-depth : 1
92
98
93
- - uses : actions/setup-python@v4
94
- name : Install Python 3.9
99
+ - uses : actions/setup-python@v2
100
+ name : Install Python ${{ matrix.python-version }}
95
101
with :
96
- python-version : 3.9
102
+ python-version : ${{ format('{0}.0-alpha - {0}.X', matrix.python) }}
97
103
98
104
- name : Update pip
99
105
run : |
@@ -109,7 +115,27 @@ jobs:
109
115
python -m pip install maturin
110
116
rustup target add x86_64-unknown-linux-musl
111
117
118
+ - name : Build Windows
119
+ if : startsWith(matrix.os, 'windows')
120
+ run : |
121
+ python -m venv venv
122
+ . .\venv\Scripts\Activate.ps1
123
+ ln -s venv\Scripts\Activate.ps1 activate
124
+ git clone https://github.com/Chia-Network/clvm_tools.git --branch=main --single-branch
125
+ python -m pip install ./clvm_tools
126
+ python -m pip install colorama
127
+ maturin develop -m wheel/Cargo.toml --release
128
+
129
+ - name : Run cost checks
130
+ if : startsWith(matrix.os, 'windows')
131
+ run : |
132
+ . .\venv\Scripts\Activate.ps1
133
+ cd tests
134
+ ./generate-programs.py
135
+ ./run-programs.py
136
+
112
137
- name : Build
138
+ if : ${{ !startsWith(matrix.os, 'windows') }}
113
139
env :
114
140
CC : gcc
115
141
run : |
@@ -122,6 +148,7 @@ jobs:
122
148
maturin develop -m wheel/Cargo.toml --release --features=openssl
123
149
124
150
- name : Run cost checks
151
+ if : ${{ !startsWith(matrix.os, 'windows') }}
125
152
run : |
126
153
. ./activate
127
154
cd tests
0 commit comments