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

[CI] Stop building classic pkgs. #21382

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
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
48 changes: 0 additions & 48 deletions tools/devops/automation/templates/build/build-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ steps:
gitHubToken: ${{ parameters.gitHubToken }}
xqaCertPass: ${{ parameters.xqaCertPass }}
buildSteps:
# build not signed .pkgs for the SDK
- bash: |
set -x
set -e
rm -Rf $(Build.SourcesDirectory)/package/*.pkg
rm -Rf $(Build.SourcesDirectory)/package/notarized/*.pkg
time make -C $(Build.SourcesDirectory)/xamarin-macios/ package
name: packages
displayName: 'Build Packages'
condition: and(succeeded(), contains(variables['configuration.BuildPkgs'], 'True'))
timeoutInMinutes: 180

# build nugets
- bash: $(Build.SourcesDirectory)/xamarin-macios/tools/devops/automation/scripts/bash/build-nugets.sh
displayName: 'Build Nugets'
Expand All @@ -75,42 +63,6 @@ steps:
artifact: '${{ parameters.uploadPrefix }}WorkloadRollback'
continueOnError: true

- bash: |
var=$(make -C $(Build.SourcesDirectory)/xamarin-macios/tools/devops print-variable VARIABLE=IOS_PACKAGE_VERSION)
IOS_PACKAGE_VERSION=${var#*=}
IOS_PACKAGE_VERSION=$(echo $IOS_PACKAGE_VERSION | cut -d "+" -f1)

var=$(make -C $(Build.SourcesDirectory)/xamarin-macios/tools/devops print-variable VARIABLE=MAC_PACKAGE_VERSION)
MAC_PACKAGE_VERSION=${var#*=}
MAC_PACKAGE_VERSION=$(echo $MAC_PACKAGE_VERSION | cut -d "+" -f1)

PKG_DST="$(Build.SourcesDirectory)/PkgsVersions.json"

echo "{" > $PKG_DST
echo "\"iOS\": \"$IOS_PACKAGE_VERSION\"," >> $PKG_DST
echo "\"macOS\": \"$MAC_PACKAGE_VERSION\"" >> $PKG_DST
echo "}" >> $PKG_DST

echo "PkgVersions.json file contents:"
echo "$(cat $PKG_DST)"
name: pkg_versions_file
displayName: 'Generate PkgsVersions.json'

- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish PkgsVersions.json'
inputs:
path: $(Build.SourcesDirectory)/PkgsVersions.json
artifact: '${{ parameters.uploadPrefix }}PkgsVersions'
continueOnError: true

# upload each of the pkgs into the pipeline artifacts
- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish Build Artifacts'
inputs:
path: $(Build.SourcesDirectory)/package
artifact: '${{ parameters.uploadPrefix }}not-signed-package'
continueOnError: true

- bash: |
set -x
set -e
Expand Down
Loading