Skip to content

Commit e0a2f91

Browse files
authored
Update azure build process to use install.sh and other patterns from the GHA builds (#8625)
1 parent de67c42 commit e0a2f91

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trigger:
99
- "*"
1010
tags:
1111
include:
12-
- "*"
12+
- "*"
1313

1414
pool:
1515
vmImage: "macOS-10.15"
@@ -44,24 +44,18 @@ steps:
4444
deleteCert: true
4545

4646
- script: |
47-
python -m venv venv
48-
ln -s venv/bin/activate .
49-
. ./activate
50-
python -m pip install --upgrade pip
51-
pip install wheel pep517 setuptools_scm
52-
node -v
53-
pip install -i https://pypi.chia.net/simple/ miniupnpc==2.2.2
54-
cd build_scripts
47+
python3 -m venv ../venv
48+
. ../venv/bin/activate
49+
pip install setuptools_scm
5550
touch $(System.DefaultWorkingDirectory)/build_scripts/version.txt
56-
python -m installer-version > $(System.DefaultWorkingDirectory)/build_scripts/version.txt
57-
displayName: "Install dependencies"
51+
python ./build_scripts/installer-version.py > $(System.DefaultWorkingDirectory)/build_scripts/version.txt
52+
cat $(System.DefaultWorkingDirectory)/build_scripts/version.txt
53+
deactivate
54+
displayName: Create installer version number
5855
5956
- script: |
60-
. ./activate
61-
clang --version
62-
pip wheel --use-pep517 --extra-index-url https://pypi.chia.net/simple/ --wheel-dir=wheels .
63-
pip install --no-index --find-links=./wheels/ chia-blockchain
64-
displayName: "Build and install wheels"
57+
sh install.sh
58+
displayName: "Install dependencies"
6559
6660
- task: NodeTool@0
6761
inputs:
@@ -75,17 +69,10 @@ steps:
7569
APPLE_NOTARIZE_PASSWORD="$(APPLE_NOTARIZE_PASSWORD)"
7670
export APPLE_NOTARIZE_PASSWORD
7771
if [ "$(APPLE_NOTARIZE_PASSWORD)" ]; then NOTARIZE="true"; export NOTARIZE; fi
78-
git submodule update --init --recursive
7972
cd build_scripts || exit
8073
sh build_macos.sh
8174
displayName: "Build DMG with build_scripts/build_macos.sh"
8275
83-
- task: PublishPipelineArtifact@1
84-
inputs:
85-
targetPath: $(System.DefaultWorkingDirectory)/wheels
86-
artifactName: MacOS-wheels
87-
displayName: "Upload MacOS wheels"
88-
8976
- task: PublishPipelineArtifact@1
9077
inputs:
9178
targetPath: $(System.DefaultWorkingDirectory)/build_scripts/final_installer/

0 commit comments

Comments
 (0)