forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
21 changed files
with
209 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ jobs: | |
## Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720) | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -133,7 +133,7 @@ jobs: | |
|
||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -190,7 +190,7 @@ jobs: | |
|
||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -229,7 +229,7 @@ jobs: | |
- name: Reset existing repo | ||
shell: cmd | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Git Checkout | ||
|
@@ -273,7 +273,7 @@ jobs: | |
- name: Reset existing repo | ||
shell: cmd | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Git Checkout | ||
|
@@ -319,7 +319,7 @@ jobs: | |
|
||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -374,7 +374,7 @@ jobs: | |
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -391,7 +391,7 @@ jobs: | |
|
||
- name: Test | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git submodule sync | ||
git submodule update --init --recursive --jobs 7 | ||
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA" | ||
|
@@ -431,7 +431,7 @@ jobs: | |
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -448,7 +448,7 @@ jobs: | |
|
||
- name: Test | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git submodule sync | ||
git submodule update --init --recursive --jobs 7 | ||
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB" | ||
|
@@ -488,7 +488,7 @@ jobs: | |
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -505,7 +505,7 @@ jobs: | |
|
||
- name: Test | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git submodule sync | ||
git submodule update --init --recursive --jobs 7 | ||
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC" | ||
|
@@ -541,7 +541,7 @@ jobs: | |
|
||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -593,7 +593,7 @@ jobs: | |
|
||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -648,7 +648,7 @@ jobs: | |
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -706,7 +706,7 @@ jobs: | |
steps: | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -723,7 +723,7 @@ jobs: | |
|
||
- name: Generate Website | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
./project/scripts/genDocs -doc-snapshot | ||
- name: Deploy Website to https://dotty.epfl.ch | ||
|
@@ -764,7 +764,7 @@ jobs: | |
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH | ||
- name: Reset existing repo | ||
run: | | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true | ||
- name: Checkout cleanup script | ||
|
@@ -826,15 +826,15 @@ jobs: | |
path: . | ||
- name: Prepare MSI package | ||
shell: bash | ||
run: | | ||
run: | | ||
msiInstaller="scala3-${{ env.RELEASE_TAG }}.msi" | ||
mv scala.msi "${msiInstaller}" | ||
sha256sum "${msiInstaller}" > "${msiInstaller}.sha256" | ||
- name: Install GH CLI | ||
uses: dev-hanz-ops/[email protected] | ||
with: | ||
gh-cli-version: 2.59.0 | ||
gh-cli-version: 2.59.0 | ||
|
||
# Create the GitHub release | ||
- name: Create GitHub Release | ||
|
@@ -844,7 +844,7 @@ jobs: | |
run: | | ||
# We need to config safe.directory in every step that might reference git | ||
# It is not persisted between steps | ||
git config --global --add safe.directory /__w/scala3/scala3 | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
gh release create \ | ||
--draft \ | ||
--title "${{ env.RELEASE_TAG }}" \ | ||
|
@@ -911,14 +911,14 @@ jobs: | |
uses: ./.github/workflows/build-chocolatey.yml | ||
needs: [ build-sdk-package ] | ||
with: | ||
version: 3.6.0-local # TODO: FIX THIS | ||
version: 3.6.0-SNAPSHOT # Fake version, used only for choco tests | ||
url : https://api.github.com/repos/scala/scala3/actions/artifacts/${{ needs.build-sdk-package.outputs.win-x86_64-id }}/zip | ||
digest : ${{ needs.build-sdk-package.outputs.win-x86_64-digest }} | ||
|
||
test-chocolatey-package: | ||
uses: ./.github/workflows/test-chocolatey.yml | ||
with: | ||
version : 3.6.0-local # TODO: FIX THIS | ||
version : 3.6.0-SNAPSHOT # Fake version, used only for choco tests | ||
java-version: 8 | ||
if: github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_chocolatey]') | ||
needs: [ build-chocolatey-package ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.