Skip to content

Commit fd18488

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

File tree

7 files changed

+68
-0
lines changed

7 files changed

+68
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 22 additions & 0 deletions
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 versionCheck 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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
.idea/

build.sbt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// build
2+
autoScalaLibrary := false
3+
crossPaths := false
4+
Compile / compile / javacOptions ++= Seq("-g", "-parameters")
5+
6+
// publish
7+
name := "scala-asm"
8+
organization := "org.scala-lang.modules"
9+
sonatypeProfileName := "org.scala-lang"
10+
homepage := Some(url("https://github.com/scala/scala-asm"))
11+
licenses := Seq("BSD 3-clause" -> url("http://opensource.org/licenses/BSD-3-Clause"))
12+
scmInfo := Some(ScmInfo(url("https://github.com/scala/scala-asm"),
13+
"scm:git:[email protected]:scala/scala-asm.git"))
14+
15+
// override sbt-dynver (sbt-ci-release brings it, but we don't want it)
16+
version := "9.7.1-scala-1"

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.10.6

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
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)