File tree Expand file tree Collapse file tree 3 files changed +43
-2
lines changed Expand file tree Collapse file tree 3 files changed +43
-2
lines changed Original file line number Diff line number Diff line change @@ -715,6 +715,47 @@ jobs:
715715 exit 1
716716 fi
717717
718+ <<<<<<< backport-lts-3.3-24271
719+ =======
720+ - name : Prepare the SDKs
721+ shell : bash
722+ run : |
723+ prepareSDK() {
724+ distroSuffix="$1"
725+ sbtProject="$2"
726+ distDir="$3"
727+
728+ # Build binaries
729+ ./project/scripts/sbt "all ${sbtProject}/Universal/packageBin ${sbtProject}/Universal/packageZipTarball"
730+
731+ artifactName="scala3-${{ env.RELEASE_TAG }}${distroSuffix}"
732+
733+ # Caluclate SHA for each of archive files
734+ for file in "${artifactName}.zip" "${artifactName}.tar.gz"; do
735+ mv ${distDir}/target/universal/$file $file
736+ sha256sum "${file}" > "${file}.sha256"
737+ done
738+ }
739+ prepareSDK "" "dist" "./dist/"
740+ prepareSDK "-aarch64-pc-linux" "dist-linux-aarch64" "./dist/linux-aarch64/"
741+ prepareSDK "-x86_64-pc-linux" "dist-linux-x86_64" "./dist/linux-x86_64/"
742+ prepareSDK "-aarch64-apple-darwin" "dist-mac-aarch64" "./dist/mac-aarch64/"
743+ prepareSDK "-x86_64-apple-darwin" "dist-mac-x86_64" "./dist/mac-x86_64/"
744+ prepareSDK "-x86_64-pc-win32" "dist-win-x86_64" "./dist/win-x86_64/"
745+
746+ - name : Download MSI package
747+ uses : actions/download-artifact@v6
748+ with :
749+ name : scala.msi
750+ path : .
751+ - name : Prepare MSI package
752+ shell : bash
753+ run : |
754+ msiInstaller="scala3-${{ env.RELEASE_TAG }}.msi"
755+ mv scala.msi "${msiInstaller}"
756+ sha256sum "${msiInstaller}" > "${msiInstaller}.sha256"
757+
758+ >>>>>>> d7ff7de Bump actions/download-artifact from 5 to 6
718759 - name : Install GH CLI
719760 uses : dev-hanz-ops/install-gh-cli-action@v0.2.1
720761 with :
Original file line number Diff line number Diff line change 3131 runs-on : windows-latest
3232 steps :
3333 - name : Fetch the Chocolatey package from GitHub
34- uses : actions/download-artifact@v5
34+ uses : actions/download-artifact@v6
3535 with :
3636 name : scala.nupkg
3737 - name : Publish the package to Chocolatey
Original file line number Diff line number Diff line change 3535 distribution : temurin
3636 java-version : ${{ inputs.java-version }}
3737 - name : Download the 'nupkg' from GitHub Artifacts
38- uses : actions/download-artifact@v5
38+ uses : actions/download-artifact@v6
3939 with :
4040 name : scala.nupkg
4141 path : ${{ env.CHOCOLATEY-REPOSITORY }}
You can’t perform that action at this time.
0 commit comments