generated from TBD54566975/tbd-project-template
-
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.
Build CLI binaries and attach them to release (#330)
Build CLI binaries and attach them to release Co-authored-by: Kendall Weihe <[email protected]> --------- Co-authored-by: Kendall Weihe <[email protected]>
- Loading branch information
1 parent
1c34f0a
commit caacb9a
Showing
3 changed files
with
84 additions
and
10 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,72 @@ | ||
name: Build web5_cli release artifacts | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build_cli_aarch64-apple-darwin: | ||
runs-on: macos-latest | ||
name: aarch64-apple-darwin | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup toolchain install stable | ||
- name: cargo build | ||
run: | | ||
cargo build --target aarch64-apple-darwin --release --package web5_cli | ||
cp -v target/aarch64-apple-darwin/release/web5_cli web5_cli-aarch64-apple-darwin | ||
- name: upload release asset | ||
uses: AButler/[email protected] | ||
with: | ||
files: web5_cli-aarch64-apple-darwin | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cli_x86_64_apple_darwin: | ||
runs-on: macos-12 | ||
name: x86_64-apple-darwin | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
run: rustup toolchain install stable | ||
- name: cargo build | ||
run: | | ||
cargo build --target x86_64-apple-darwin --release --package web5_cli --features x86_64_apple_darwin | ||
cp -v target/x86_64-apple-darwin/release/web5_cli web5_cli-x86_64-apple-darwin | ||
- name: upload release asset | ||
uses: AButler/[email protected] | ||
with: | ||
files: web5_cli-x86_64-apple-darwin | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cli_x86_64_unknown_linux_gnu: | ||
runs-on: ubuntu-latest | ||
name: x86_64-unknown-linux-gnu | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cargo build | ||
run: | | ||
cargo build --target x86_64-unknown-linux-gnu --release --package web5_cli | ||
cp -v target/x86_64-unknown-linux-gnu/release/web5_cli web5_cli-x86_64-unknown-linux-gnu | ||
- name: upload release asset | ||
uses: AButler/[email protected] | ||
with: | ||
files: web5_cli-x86_64-unknown-linux-gnu | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cli_x86_64_unknown_linux_musl: | ||
runs-on: ubuntu-latest | ||
name: x86_64-unknown-linux-musl | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run Build Script | ||
run: | | ||
pushd crates/web5_cli/build/x86_64_unknown_linux_musl | ||
./build | ||
popd | ||
cp target/x86_64-unknown-linux-musl/release/web5_cli web5_cli-x86_64-unknown-linux-musl | ||
- name: upload release asset | ||
uses: AButler/[email protected] | ||
with: | ||
files: web5_cli-x86_64-unknown-linux-musl | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
Validating CODEOWNERS rules …
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 |
---|---|---|
|
@@ -9,8 +9,9 @@ | |
# The format is described: https://github.blog/2017-07-06-introducing-code-owners/ | ||
|
||
# These owners will be the default owners for everything in the repo. | ||
* @KendallWeihe @nitro-neal @kirahsapong @shamilovtim @diehuxx @decentralgabe @frankhinek @leordev @ALRubinger | ||
* @KendallWeihe @nitro-neal @kirahsapong @shamilovtim @diehuxx @decentralgabe @frankhinek @leordev @ALRubinger | ||
|
||
.github/workflows/release.yaml @finn-tbd | ||
|
||
# ----------------------------------------------- | ||
# BELOW THIS LINE ARE TEMPLATES, UNUSED | ||
|
@@ -21,4 +22,4 @@ | |
# *.js @octocat @github/js | ||
|
||
# You can also use email addresses if you prefer. | ||
# docs/* [email protected] | ||
# docs/* [email protected] |
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