-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v2.1.2' into main
- Loading branch information
Showing
74 changed files
with
2,281 additions
and
418 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of string | ||
labels: | ||
- small | ||
- large | ||
- large-cd | ||
- cargo |
31 changes: 31 additions & 0 deletions
31
.github/actions/mobilecoin-cache-cargo-package/action.yaml
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,31 @@ | ||
name: Mobilecoin Cargo Package Cache | ||
description: Standardized rust cargo package cache setup | ||
|
||
inputs: | ||
cache_buster: | ||
description: "string to make cache unique" | ||
required: false | ||
path: | ||
description: "path to mount cache" | ||
required: false | ||
default: | | ||
/opt/cargo/git | ||
/opt/cargo/registry/index | ||
/opt/cargo/registry/cache | ||
outputs: | ||
cache-hit: | ||
description: "did we get a cache hit?" | ||
value: ${{ steps.rust_artifact_cache.outputs.cache-hit }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache rust build binaries | ||
id: rust_artifact_cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ inputs.path }} | ||
# Key is a hash of all the Cargo.toml and Cargo.lock files. | ||
# if packages change, invalidate cache and rebuild | ||
key: ${{ inputs.cache_buster }}-${{ runner.os }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}-cargo-cache |
29 changes: 29 additions & 0 deletions
29
.github/actions/mobilecoin-cache-rust-binaries/action.yaml
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,29 @@ | ||
name: Mobilecoin Rust Binary Cache | ||
description: Standardized rust binary cache setup | ||
|
||
inputs: | ||
cache_buster: | ||
description: "string to make cache unique" | ||
required: false | ||
path: | ||
description: "path to mount cache" | ||
required: false | ||
default: | | ||
rust_build_artifacts | ||
outputs: | ||
cache-hit: | ||
description: "did we get a cache hit?" | ||
value: ${{ steps.rust_artifact_cache.outputs.cache-hit }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache rust build binaries | ||
id: rust_artifact_cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ inputs.path }} | ||
# Key is a hash of all the .rs, .proto and Cargo.toml files. | ||
# if code changes, invalidate cache and rebuild | ||
key: ${{ inputs.cache_buster }}-${{ runner.os }}-${{ hashFiles('**/*.rs', '**/*.proto', '**/Cargo.toml', '**/*.edl', '.cargo/config') }}-rust-build-artifacts |
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
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.