Skip to content

Commit

Permalink
Merge branch 'main' into update/scalafmt-cli-3.7.14
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored Sep 13, 2023
2 parents e103004 + b4b85b1 commit f209f0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/launchers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-20.04, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
UPLOAD_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

generate-static-launcher:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -71,7 +71,7 @@ jobs:
UPLOAD_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

generate-mostly-static-launcher:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.11
0.10.12
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_Note that Scala Native support in scalafmt is in the works. As soon as it is stable and provides launchers for Linux / macOS / Windows, the repository here should be sunset._

These launchers are generated on the scalafmt-native-image CI, and pushed [here](https://github.com/alexarchambault/scalafmt-native-image/releases/tag/launchers).
These launchers are generated on the scalafmt-native-image CI, and released [here](https://github.com/VirtusLab/scalafmt-native-image/releases/).

These launchers aim at being consumed by [Scala CLI](https://github.com/VirtusLab/scala-cli), but can also be useful on their own. Note that if the launcher scalafmt version and the scalafmt version in `.scalafmt.conf` don't match, the launcher will not proceed and fail loudly. Those versions have to match.

Expand Down
10 changes: 5 additions & 5 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.3.0`
import $ivy.`io.github.alexarchambault.mill::mill-native-image::0.1.23`
import $ivy.`io.github.alexarchambault.mill::mill-native-image-upload:0.1.21`
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.3.1`
import $ivy.`io.github.alexarchambault.mill::mill-native-image::0.1.25`
import $ivy.`io.github.alexarchambault.mill::mill-native-image-upload:0.1.23`

import de.tobiasroeser.mill.vcs.version._
import io.github.alexarchambault.millnativeimage.NativeImage
Expand All @@ -11,7 +11,7 @@ import mill.scalalib._
def scalafmtVersion = "3.7.14"

trait ScalafmtNativeImage extends ScalaModule with NativeImage {
def scalaVersion = "2.13.10"
def scalaVersion = "2.13.11"

def nativeImageClassPath = T{
val origCp = runClasspath()
Expand Down Expand Up @@ -186,5 +186,5 @@ def upload(directory: String = "artifacts/") = T.command {
if (version.endsWith("-SNAPSHOT")) ("launchers", true)
else ("v" + version, false)

Upload.upload("scala-cli", "scalafmt-native-image", ghToken, tag, dryRun = false, overwrite = overwriteAssets)(launchers: _*)
Upload.upload("virtuslab", "scalafmt-native-image", ghToken, tag, dryRun = false, overwrite = overwriteAssets)(launchers: _*)
}

0 comments on commit f209f0a

Please sign in to comment.