Skip to content

Commit 30dd4e9

Browse files
committed
Add github actions CI.
1 parent 381177a commit 30dd4e9

File tree

4 files changed

+50
-2
lines changed

4 files changed

+50
-2
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches:
5+
- '*'
6+
tags:
7+
- '*'
8+
9+
name: ci
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions/setup-java@v2
19+
with:
20+
distribution: 'adopt'
21+
java-version: '16'
22+
23+
- name: install sbt
24+
run: |
25+
pushd ..
26+
sbt_version=1.5.1
27+
wget https://github.com/sbt/sbt/releases/download/v$sbt_version/sbt-$sbt_version.tgz
28+
tar xf sbt-$sbt_version.tgz
29+
echo $PWD/sbt/bin >>$GITHUB_PATH
30+
popd
31+
32+
- name: build trepplein
33+
run: sbt compile
34+
35+
- name: create release zip
36+
run: sbt universal:packageBin
37+
38+
- name: release
39+
uses: softprops/action-gh-release@v1
40+
if: startsWith(github.ref, 'refs/tags/')
41+
with:
42+
files: target/universal/*.zip
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: run unit tests
47+
run: sbt test

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description := "Independent type-checker for the dependently typed theorem prove
33
homepage := Some(url("https://github.com/gebner/trepplein"))
44
startYear := Some(2017)
55
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html"))
6+
maintainer := "[email protected]"
67

78
version := "1.0"
89

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.4.7
1+
sbt.version = 1.5.1

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ logLevel := Level.Warn
33

44
resolvers += Resolver.sbtPluginRepo("releases")
55
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")
6-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.0")
6+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")

0 commit comments

Comments
 (0)