Skip to content

Commit 864b765

Browse files
lrytzSethTisue
andcommitted
[asm-cherry-pick] Build infrastructure
Co-authored-by: Seth Tisue <[email protected]>
1 parent 1bc03a8 commit 864b765

File tree

7 files changed

+79
-0
lines changed

7 files changed

+79
-0
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: test
2+
on:
3+
push:
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-java@v4
10+
with:
11+
distribution: temurin
12+
java-version: 8
13+
- uses: sbt/setup-sbt@v1
14+
- name: Test
15+
run: sbt test publishLocal

.github/workflows/cla.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Check Scala CLA"
2+
on:
3+
pull_request:
4+
jobs:
5+
cla-check:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Verify CLA
9+
uses: scala/cla-checker@v1
10+
with:
11+
author: ${{ github.event.pull_request.user.login }}

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-java@v4
13+
with:
14+
distribution: temurin
15+
java-version: 8
16+
- uses: sbt/setup-sbt@v1
17+
- run: sbt ci-release
18+
env:
19+
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
20+
PGP_SECRET: ${{secrets.PGP_SECRET}}
21+
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
22+
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
.idea/

build.sbt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// build
2+
autoScalaLibrary := false
3+
crossPaths := false
4+
Compile / compile / javacOptions ++= Seq("-g", "-parameters")
5+
6+
// override sbt-dynver (sbt-ci-release brings it, but we don't want it)
7+
version := "9.8.0-scala-1"
8+
9+
// publish
10+
name := "scala-asm"
11+
organization := "org.scala-lang.modules"
12+
sonatypeProfileName := "org.scala-lang"
13+
homepage := Some(url("https://github.com/scala/scala-asm"))
14+
licenses := Seq("BSD 3-clause" -> url("http://opensource.org/licenses/BSD-3-Clause"))
15+
scmInfo := Some(ScmInfo(url("https://github.com/scala/scala-asm"),
16+
"scm:git:[email protected]:scala/scala-asm.git"))
17+
pomExtra :=
18+
<developers>
19+
<developer>
20+
<id>lamp</id>
21+
<name>LAMP/EPFL</name>
22+
</developer>
23+
<developer>
24+
<id>Akka</id>
25+
<name>Akka</name>
26+
</developer>
27+
</developers>

project/build.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.10.6

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.0")

0 commit comments

Comments
 (0)