-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh workflow: cache aptos-debugger binary
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 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,32 @@ | ||
name: "Build aptos-debugger binary" | ||
description: Build aptos-debugger binary | ||
|
||
inputs: | ||
GIT_CREDENTIALS: | ||
description: "Optional credentials to pass to git" | ||
required: false | ||
GIT_SHA: | ||
required: true | ||
type: string | ||
description: The git SHA1 to test. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.GIT_SHA }} | ||
|
||
- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | ||
with: | ||
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} | ||
|
||
- name: Build aptos-debugger in release mode | ||
shell: bash | ||
run: cargo build --release -p aptos-debugger | ||
|
||
- name: print pwd | ||
run: pwd | ||
|
||
- name: copy to working directory | ||
run: cp target/release/aptos-debugger aptos-debugger |
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,27 @@ | ||
name: "Build aptos-debugger binary" | ||
description: Build aptos-debugger binary | ||
|
||
inputs: | ||
GIT_CREDENTIALS: | ||
description: "Optional credentials to pass to git" | ||
required: false | ||
GIT_SHA: | ||
required: true | ||
type: string | ||
description: The git SHA1 to test. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Check Cache | ||
id: cache-aptos-debugger-binary | ||
uses: actions/cache@v4 | ||
with: | ||
path: aptos-debugger | ||
key: aptos-debugger-${{ inputs.GIT_SHA }} | ||
|
||
- uses: ./.github/actions/build-aptos-debugger | ||
if: steps.cache-aptos-debugger-binary.outputs.cache-hit != 'true' | ||
with: | ||
GIT_SHA: ${{ inputs.GIT_SHA }} | ||
GIT_CREDENTIALS: ${{ inputs.GIT_CREDENTIALS }} |
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