-
Notifications
You must be signed in to change notification settings - Fork 17
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 #133 from InvArch/gabriel-merge_invarch
Merge InvArch into main and restructure workspace
- Loading branch information
Showing
87 changed files
with
17,889 additions
and
357 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
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,49 +1,48 @@ | ||
name: Release binary to existing tag | ||
|
||
on: workflow_dispatch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
# Get name of the chain | ||
chain: | ||
description: Chain (default = tinkernet) | ||
required: true | ||
default: tinkernet | ||
type: choice | ||
options: | ||
- tinkernet | ||
- invarch | ||
|
||
jobs: | ||
build_binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Free disk space | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
df -h | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Setup for checks | ||
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
|
||
- name: Install & display rust toolchain | ||
run: rustup show | ||
run: cd ${{ github.event.inputs.chain }} && rustup show | ||
|
||
- name: Check targets are installed correctly | ||
run: rustup target list --installed | ||
|
||
- name: Build binary | ||
run: cargo build --release | ||
run: cd ${{ github.event.inputs.chain }} && cargo build --release | ||
|
||
- name: Add binary to release | ||
uses: djnicholson/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag-name: ${{ github.ref_name }} | ||
asset-name: 'invarch-collator' | ||
file: 'target/release/invarch-collator' | ||
|
||
- name: Add spec file to release | ||
uses: djnicholson/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag-name: ${{ github.ref_name }} | ||
asset-name: 'tinker-raw.json' | ||
file: 'res/tinker/tinker-raw.json' | ||
asset-name: '${{ github.event.inputs.chain }}-collator' | ||
file: '${{ github.event.inputs.chain }}/target/release/${{ github.event.inputs.chain }}-collator' |
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
Oops, something went wrong.