forked from non/debox
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ScorexFoundation/remove-spire-dependence
Remove spire dependence
- Loading branch information
Showing
20 changed files
with
205 additions
and
512 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,58 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
name: Test and publish a snapshot | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [2.13.8, 2.12.15, 2.11.12] | ||
java: [adopt@1.8] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
HAS_SECRETS: ${{ secrets.SONATYPE_PASSWORD != '' }} | ||
steps: | ||
- name: Checkout current branch (full) | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java and Scala | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Cache sbt | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier/cache/v1 | ||
~/.cache/coursier/v1 | ||
~/AppData/Local/Coursier/Cache/v1 | ||
~/Library/Caches/Coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
- name: Runs tests and collect coverage | ||
run: sbt -jvm-opts ci/ci.jvmopts ++${{ matrix.scala }} test | ||
|
||
- name: Publish a snapshot ${{ github.ref }} | ||
if: env.HAS_SECRETS == 'true' | ||
run: sbt ++${{ matrix.scala }} publish | ||
env: | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
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,44 @@ | ||
name: Publish a release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
publish_release: | ||
name: Publish release to Sonatype | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Java and Scala | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: adopt@1.8 | ||
|
||
- name: Cache sbt | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier/cache/v1 | ||
~/.cache/coursier/v1 | ||
~/AppData/Local/Coursier/Cache/v1 | ||
~/Library/Caches/Coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
- name: Import GPG key | ||
run: ci/import_gpg.sh | ||
env: | ||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | ||
|
||
- name: Publish release ${{ github.ref }} | ||
run: sbt +publishSigned sonatypeBundleRelease | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
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 |
---|---|---|
|
@@ -15,3 +15,5 @@ TAGS | |
*~ | ||
.#* | ||
.lib | ||
.idea/ | ||
.bsp/ |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-Xmx6g | ||
-Xss2m | ||
-XX:+CMSClassUnloadingEnabled | ||
-XX:+UseConcMarkSweepGC | ||
-XX:ReservedCodeCacheSize=96m | ||
-XX:+TieredCompilation |
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 @@ | ||
#!/bin/bash | ||
# setting up gpg2 for reading passphrase from parameters | ||
# via https://github.com/beautiful-scala/scalastyle/blob/master/.github/workflows/release.yml#L16 | ||
# from https://github.com/olafurpg/sbt-ci-release/issues/95 | ||
|
||
# setup gpg | ||
mkdir ~/.gnupg && chmod 700 ~/.gnupg | ||
echo use-agent >> ~/.gnupg/gpg.conf | ||
echo pinentry-mode loopback >> ~/.gnupg/gpg.conf | ||
echo allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf | ||
chmod 600 ~/.gnupg/* | ||
echo RELOADAGENT | gpg-connect-agent | ||
|
||
# decode key | ||
# private key should be previously exported with: | ||
# gpg --export-secret-keys [id] | base64 | pbcopy | ||
# and stored as github repository secret under the following name (see env var name below) | ||
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key | ||
|
||
# import key | ||
gpg --no-tty --batch --yes --import ~/.gnupg/private.key |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0") | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5") | ||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.2") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0") | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") |
Oops, something went wrong.