-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (47 loc) · 2 KB
/
build-windows_310.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
# This workflow will build fractalshades wheels unders windows and store these wheels as github artifacts
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build-windows 3.10
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10',]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install gmpy2 and adds the headers - creates the .lib files
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install gmpy2
echo "*** listing MVS folder"
dir "C:\Program Files\Microsoft Visual Studio\"
dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC"
dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\bin\Hostx86\x64"
# Uncomment this line to get the full list of directories containing 'dumpbin.exe'
# Get-Childitem –Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC" -Include dumpbin.exe -Recurse -ErrorAction SilentlyContinue
echo "**** Running python gmpy2 pathch script"
python win_build\patch_gmpy2.py
- name: Install dependencies
run: |
echo "install build dependencies /"
# Is it really needed ? yes because some are imported in setup.py !
python -m pip install -r win_build/build_requirements.txt
- name: Builds Fractalshades
run: |
python3 -m build --no-isolation
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist-without-markdown
path: |
dist
retention-days: 5