-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
2aa6fb7
commit be93833
Showing
2 changed files
with
20 additions
and
11 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 |
---|---|---|
|
@@ -16,6 +16,11 @@ on: | |
jobs: | ||
build_binary: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: ./${{ github.event.inputs.chain }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -34,15 +39,15 @@ jobs: | |
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
|
||
- name: Install & display rust toolchain | ||
run: cd ${{ github.event.inputs.chain }} && rustup show | ||
run: rustup show | ||
|
||
- name: Build binary | ||
run: cd ${{ github.event.inputs.chain }} && cargo build --release | ||
run: cargo build --release | ||
|
||
- name: Add binary to release | ||
uses: djnicholson/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag-name: ${{ github.ref_name }} | ||
asset-name: '${{ github.event.inputs.chain }}-collator' | ||
file: '${{ github.event.inputs.chain }}/target/release/${{ github.event.inputs.chain }}-collator' | ||
file: '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