Skip to content

Commit 1f81a76

Browse files
committed
Sync with Scala Native 0.5.0
1 parent 918d0dd commit 1f81a76

File tree

12 files changed

+48
-1528
lines changed

12 files changed

+48
-1528
lines changed

.github/publish.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: coursier/cache-action@v6
14+
- uses: coursier/setup-action@v1
15+
with:
16+
jvm: adopt:8
17+
18+
- name: Setup PGP Key
19+
run: |
20+
echo -n "$PGP_SECRET" | base64 --decode | gpg --batch --import
21+
env:
22+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
23+
24+
- name: Compile everything
25+
run: sbt "+test"
26+
27+
- name: Publish release
28+
env:
29+
MAVEN_USER: "${{ secrets.SONATYPE_USER }}"
30+
MAVEN_PASSWORD: "${{ secrets.SONATYPE_PASSWORD }}"
31+
PGP_PASSPHRASE: "${{ secrets.PGP_PASSWORD }}"
32+
run: sbt "clean; +publishSigned"

.github/workflows

Whitespace-only changes.

build.sbt

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
// Update during release procedure to provide access to staged, but not published artifacts
2+
val StagingRepoIds = 1147 to 1149
3+
val StagingRepoNames = StagingRepoIds.map(id => s"orgscala-native-$id").toSeq
4+
15
inThisBuild(
26
Def.settings(
37
version := "1.0.0",
48
scalaVersion := "3.1.3",
5-
crossScalaVersions := Seq("2.12.16", "2.13.8", "3.1.3"),
9+
crossScalaVersions := Seq("2.12.18", "2.13.13", "3.1.3"),
610
publishSettings,
7-
8-
versionScheme := Some("semver-spec")
11+
versionScheme := Some("semver-spec"),
12+
resolvers ++= StagingRepoNames.flatMap(Resolver.sonatypeOssRepos(_))
913
)
1014
)
1115

@@ -40,7 +44,7 @@ def publishSettings = Def.settings(
4044
organization := "org.scala-native",
4145
// name := id,
4246
homepage := Some(url("https://www.scala-native.org")),
43-
startYear := Some(2022),
47+
startYear := Some(2024),
4448
licenses := Seq(
4549
"BSD-like" -> url("https://www.scala-lang.org/downloads/license.html")
4650
),
@@ -72,10 +76,13 @@ def publishSettings = Def.settings(
7276
},
7377
credentials ++= {
7478
for {
75-
realm <- sys.env.get("MAVEN_REALM")
76-
domain <- sys.env.get("MAVEN_DOMAIN")
7779
user <- sys.env.get("MAVEN_USER")
7880
password <- sys.env.get("MAVEN_PASSWORD")
79-
} yield Credentials(realm, domain, user, password)
81+
} yield Credentials(
82+
realm = "Sonatype Nexus Repository Manager",
83+
host = "oss.sonatype.org",
84+
userName = user,
85+
passwd = password
86+
)
8087
}.toSeq
8188
)

0 commit comments

Comments
 (0)