-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
112 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build All | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
build_scala2_10: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build for Scala 2.10 | ||
run: .github/workflows/sbt-build-simple.sh 2.10.7 | ||
|
||
build_scala2_12: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build for Scala 2.12 | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: .github/workflows/sbt-build.sh 2.12.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: sbt ^test and ^packagedArtifacts | ||
env: | ||
CI_BRANCH: ${GITHUB_REF#refs/heads/} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_AUTH_TOKEN }} | ||
run: | | ||
echo "Run] sbt GitHub release" | ||
echo 'sbt -J-Xmx2048m "; clean; ^test; ^packagedArtifacts"' | ||
sbt -J-Xmx2048m "; clean; ^test; ^packagedArtifacts" | ||
- name: sbt Publish | ||
env: | ||
CI_BRANCH: ${GITHUB_REF#refs/heads/} | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }} | ||
run: | | ||
echo "Run] sbt GitHub release" | ||
echo 'sbt -J-Xmx2048m "; clean; ^publish"' | ||
sbt -J-Xmx2048m "; clean; ^publish" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
set -x | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "Scala version is missing. Please enter the Scala version." | ||
echo "sbt-build-simple.sh 2.11.12" | ||
else | ||
scala_version=$1 | ||
echo "============================================" | ||
echo "Build projects (Simple)" | ||
echo "--------------------------------------------" | ||
echo "" | ||
CURRENT_BRANCH_NAME="${GITHUB_REF#refs/heads/}" | ||
if [[ "$CURRENT_BRANCH_NAME" == "master" || "$CURRENT_BRANCH_NAME" == "release" ]] | ||
then | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; clean; test; packagedArtifacts" | ||
else | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; clean; test; package" | ||
fi | ||
|
||
echo "============================================" | ||
echo "Building projects (Simple): Done" | ||
echo "============================================" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash -e | ||
|
||
set -x | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "Scala version is missing. Please enter the Scala version." | ||
echo "sbt-build.sh 2.11.12" | ||
else | ||
scala_version=$1 | ||
echo "============================================" | ||
echo "Build projects" | ||
echo "--------------------------------------------" | ||
echo "" | ||
CURRENT_BRANCH_NAME="${GITHUB_REF#refs/heads/}" | ||
export CI_BRANCH=$CURRENT_BRANCH_NAME | ||
if [[ "$CURRENT_BRANCH_NAME" == "master" || "$CURRENT_BRANCH_NAME" == "release" ]] | ||
then | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; clean; coverage; test; coverageReport; coverageAggregate" | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; coveralls" | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; clean; packagedArtifacts" | ||
else | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; clean; coverage; test; coverageReport; coverageAggregate; package" | ||
sbt -J-Xmx2048m "; ++ ${scala_version}; coveralls" | ||
fi | ||
|
||
|
||
echo "============================================" | ||
echo "Building projects: Done" | ||
echo "============================================" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters