Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Create macOS CI + Script Cleanup #178

Merged
merged 1 commit into from
Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 27 additions & 15 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
variables:
python.version.linux: '3.7.x'
python.version.windows: '3.7.x'
python.version: '3.9.x'

jobs:
- job: UpdateBuildNumber
Expand All @@ -11,7 +10,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version.linux)
versionSpec: $(python.version)
architecture: x64
- script: python version.py
- bash: echo "##vso[build.UpdateBuildNumber]`cat version`"
Expand All @@ -33,7 +32,7 @@ jobs:
displayName: Install 7z
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version.windows)
versionSpec: $(python.version)
architecture: $(buildArch)
- powershell: scripts/build.ps1
displayName: Build
Expand All @@ -42,6 +41,28 @@ jobs:
artifactName: 'pros_cli-$(Build.BuildNumber)-win-$(buildArch)'
targetPath: 'out'

- job: macOS
timeoutInMinutes: 30
dependsOn: UpdateBuildNumber
strategy:
maxParallel: 2
matrix:
x64:
buildArch: x64
pool:
vmImage: macos-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
architecture: $(buildArch)
- bash: scripts/build.sh
displayName: Build
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'pros_cli-$(Build.BuildNumber)-macos-$(buildArch)'
targetPath: 'out'

- job: Linux
timeoutInMinutes: 30
dependsOn: UpdateBuildNumber
Expand All @@ -50,21 +71,12 @@ jobs:
matrix:
x64:
buildArch: x64
# x86:
# buildArch: x86
pool:
vmImage: ubuntu-latest
steps:
# Microsoft/azure-pipelines-image-generation#225
# - bash: |
# sudo apt-add-repository ppa:deadsnakes/ppa
# sudo apt-get update
# sudo apt-get install python3.6 python3.6-dev python3-setuptools
# displayName: Use Python 3.6
# Hopefully this will work soon
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version.linux)
versionSpec: $(python.version)
architecture: $(buildArch)
- bash: scripts/build.sh
displayName: Build
Expand All @@ -81,7 +93,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version.linux)
versionSpec: $(python.version)
architecture: x64
- checkout: none
- task: DownloadPipelineArtifact@2
Expand Down