-
Notifications
You must be signed in to change notification settings - Fork 5
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
3 changed files
with
86 additions
and
1 deletion.
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,12 @@ | ||
name: check if code is properly formatted | ||
on: [push] | ||
|
||
jobs: | ||
scalafmt-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: run scalafmt | ||
uses: stringbean/scalafmt-action@v2 |
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,69 @@ | ||
name: build and release and upload assets | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
make-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
|
||
build-x86: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- make-release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
- run: sudo apt install -y libsecp256k1-dev libuv1-dev | ||
- run: sbt nativeLink | ||
- run: mv target/scala-*/poncho-out poncho_x64 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: poncho_x64 | ||
name: poncho_x64 | ||
- uses: AButler/[email protected] | ||
with: | ||
files: poncho_x64 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.ref_name }} | ||
|
||
build-arm: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- make-release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
- run: sudo apt install -y libsecp256k1-dev libuv1-dev | ||
- run: cat build.sbt | sed 's/\/\/ _for-armv6_ //' > release.sbt && mv release.sbt build.sbt | ||
- run: sbt nativeLink | ||
- run: mv target/scala-*/poncho-out poncho_armv6 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: poncho_armv6 | ||
name: poncho_armv6 | ||
- uses: AButler/[email protected] | ||
with: | ||
files: poncho_armv6 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.ref_name }} |
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