Skip to content

Commit

Permalink
reverting...
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jan 12, 2025
1 parent 7e6d6ca commit c930eda
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/actions/post-build-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ inputs:
runs:
using: "composite"
steps:
- run: echo temurin:${{ inputs.java-version }} > .mill-jvm-version
shell: bash
- uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: temurin

# Need to fix cached artifact file permissions because github actions screws it up
# https://github.com/actions/upload-artifact/issues/38
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pre-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,11 @@ jobs:
with:
ref: ${{ github.base_ref }}

- run: echo temurin:${{ inputs.java-version }} > .mill-jvm-version

- run: chmod -R 777 . # normalize permissions before and after upload/download-artifact

- run: mkdir out && touch out/mill-selective-execution.json
shell: bash

- run: cat .mill-jvm-version

- run: ./mill -i -k selective.prepare ${{ inputs.prepareargs }}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-all-tests') }}

Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:

- uses: coursier/cache-action@v6

- run: "echo temurin:11 > .mill-jvm-version"
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: temurin

- run: ./mill -i __.publishArtifacts

Expand Down Expand Up @@ -78,7 +81,10 @@ jobs:

- uses: coursier/cache-action@v6

- run: "echo temurin:11 > .mill-jvm-version"
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: temurin

- run: ./mill -i mill.scalalib.PublishModule/

Expand Down Expand Up @@ -113,7 +119,10 @@ jobs:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }

- run: "echo temurin:11 > .mill-jvm-version"
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: temurin

- run: ./mill -i mill.scalalib.PublishModule/ --publishArtifacts dist.native.publishArtifacts

Expand Down Expand Up @@ -142,6 +151,9 @@ jobs:

- uses: coursier/cache-action@v6

- run: "echo temurin:11 > .mill-jvm-version"
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: temurin

- run: ./mill -i dist.uploadToGithub --authKey $REPO_ACCESS_TOKEN
5 changes: 4 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- uses: coursier/cache-action@v6

- run: "echo temurin:11 > .mill-jvm-version"
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: temurin

- run: ci/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,28 @@ class LauncherOldVersionsTests(version: String) extends UtestIntegrationTestSuit

// Run Mill once beforehand just to make sure it gets initialized and
// none of the initialization output gets into `outText`
os.call(cmd = (launcherScript, "version"), cwd = workspacePath, stderr = os.Pipe)
os.call(
cmd = (launcherScript, "version"),
cwd = workspacePath,
stderr = os.Pipe,
env = Map("MILL_VERSION" -> version)
)

val res = os.call(cmd = (launcherScript, "version"), cwd = workspacePath, stderr = os.Pipe)
val res = os.call(
cmd = (launcherScript, "version"),
cwd = workspacePath,
stderr = os.Pipe,
env = Map("MILL_VERSION" -> version)
)

val outText = res.out.text().trim
assert(outText == version)
os.call(cmd = (launcherScript, "shutdown"), cwd = workspacePath, check = false)
os.call(
cmd = (launcherScript, "shutdown"),
cwd = workspacePath,
check = false,
env = Map("MILL_VERSION" -> version)
)
os.remove.all(workspacePath / "out")
}
}
Expand All @@ -47,4 +62,3 @@ class LauncherOldVersionsTests(version: String) extends UtestIntegrationTestSuit
//object LauncherVersionTests_0_9 extends LauncherOldVersionsTests("0.9.12")
//object LauncherVersionTests_0_10 extends LauncherOldVersionsTests("0.10.15")
object LauncherVersionTests_0_11 extends LauncherOldVersionsTests("0.11.13")
//object LauncherVersionTests_0_12 extends LauncherOldVersionsTests("0.12.5")

0 comments on commit c930eda

Please sign in to comment.