-
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.
Merge branch 'main' into deploy/testnet
- Loading branch information
Showing
7 changed files
with
161 additions
and
25 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,24 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": ["feature"] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": ["fix"] | ||
}, | ||
{ | ||
"title": "## 🧪 Tests", | ||
"labels": ["test"] | ||
}, | ||
{ | ||
"title": "## 📓 Architecture Decision Records", | ||
"labels": ["adr"] | ||
}, | ||
{ | ||
"title": "## 💬 Other", | ||
"labels": ["other"] | ||
} | ||
] | ||
} |
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,34 @@ | ||
name: Build tessellation dependencies | ||
|
||
inputs: | ||
GITHUB_TOKEN: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get tessellation version to build | ||
shell: bash | ||
run: | | ||
echo "TESSELLATION_VERSION=v$(cat metagraph/project/Dependencies.scala | grep -E "tessellation = \"(.*)" | grep -o "\".*\"" | grep -Eo "[^\"]*")" >> $GITHUB_ENV | ||
- name: Clone and generate Tessellation dependencies | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
shell: bash | ||
run: | | ||
echo "TESSELLATION_VERSION=$TESSELLATION_VERSION" | ||
mkdir .github/dependencies | ||
cd .github/dependencies | ||
git clone https://github.com/Constellation-Labs/tessellation.git | ||
cd tessellation | ||
git checkout $TESSELLATION_VERSION | ||
sbt clean shared/publishM2 | ||
sbt clean kernel/publishM2 | ||
sbt clean keytool/publishM2 | ||
sbt clean sdk/publishM2 | ||
sbt clean dagL1/publishM2 | ||
sbt clean currencyL0/publishM2 | ||
sbt clean currencyL1/publishM2 |
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,33 @@ | ||
name: Setup Java and Scala | ||
|
||
inputs: | ||
JAVA_VERSION: | ||
required: true | ||
GITHUB_TOKEN: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Java and scala | ||
uses: olafurpg/setup-scala@v13 | ||
with: | ||
java-version: ${{ inputs.JAVA_VERSION }} | ||
|
||
- name: Cache for sbt & coursier ♨️ | ||
uses: coursier/cache-action@v6 | ||
id: coursier-cache | ||
|
||
- name: Build tessellation dependencies | ||
with: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
uses: "./.github/templates/build_tessellation" | ||
|
||
- name: Fetch Dependencies | ||
shell: bash | ||
if: steps.coursier-cache.outputs.cache-hit-coursier != 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
run: | | ||
cd metagraph | ||
sbt +update |
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,65 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
name: Create Release | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check if project version is release version | ||
run: test "v$(cut -d \" -f 2 metagraph/version.sbt)" = "${{ github.ref_name }}" | ||
|
||
- name: Build Changelog | ||
id: build_changelog | ||
uses: mikepenz/[email protected] | ||
with: | ||
configuration: ".github/config/changelog.json" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: little-core-labs/[email protected] | ||
id: tagName | ||
with: | ||
tagRegex: "v(.*)" | ||
tagRegexGroup: 1 | ||
|
||
- name: Setup Java and scala | ||
with: | ||
JAVA_VERSION: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: "./.github/templates/setup_java_and_scala" | ||
|
||
- name: Test and assembly 🚀 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd metagraph | ||
sbt 'test;currencyL0/assembly;currencyL1/assembly;dataL1/assembly' | ||
- name: Copy dependencies | ||
run: | | ||
cd metagraph | ||
cp ./modules/l0/target/scala-2.13/dor_metagraph-currency-l0-assembly-${{ steps.tagName.outputs.tag }}.jar ./metagraph-l0.jar | ||
cp ./modules/l1/target/scala-2.13/dor_metagraph-currency-l1-assembly-${{ steps.tagName.outputs.tag }}.jar ./currency-l1.jar | ||
cp ./modules/data_l1/target/scala-2.13/dor_metagraph-data_l1-assembly-${{ steps.tagName.outputs.tag }}.jar ./data-l1.jar | ||
- name: Upload release assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: DOR Metagraph Release ${{ steps.tagName.outputs.tag }} | ||
draft: false | ||
prerelease: false | ||
body: ${{ steps.build_changelog.outputs.changelog }} | ||
files: | | ||
./metagraph/metagraph-l0.jar | ||
./metagraph/currency-l1.jar | ||
./metagraph/data-l1.jar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 @@ | ||
ThisBuild / version := "1.0.0" |