forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIT-1016] Add metrics to unbounded queues + misc fixes (solana-labs#69)
- Loading branch information
Showing
35 changed files
with
2,705 additions
and
1,828 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 |
---|---|---|
@@ -1 +1,14 @@ | ||
.dockerignore | ||
.git/ | ||
.github/ | ||
.gitignore | ||
.idea/ | ||
README.md | ||
b | ||
Dockerfile | ||
docker-compose.yaml | ||
docker-output/ | ||
f | ||
p | ||
secondary/ | ||
target/ |
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,65 @@ | ||
name: Setup Rust | ||
description: Installs rust in a bare metal fashion | ||
inputs: | ||
caller-workflow-name: | ||
description: 'Name of workflow used for creating a cache key in ASCII format.' | ||
required: true | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Generate cache key | ||
id: cache-key-generator | ||
run: echo "cache-key=$(echo ${{inputs.caller-workflow-name}} | tr ' ' '_')" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Check cache key | ||
run: "echo Cache key: ${{ steps.cache-key-generator.outputs.cache-key }}" | ||
shell: bash | ||
|
||
- name: Install Protobuf | ||
run: | | ||
export PROTOC_VERSION=21.12 && \ | ||
export PROTOC_ZIP=protoc-$PROTOC_VERSION-linux-x86_64.zip && \ | ||
curl -Ss -OL https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP \ | ||
&& sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc \ | ||
&& sudo unzip -o $PROTOC_ZIP -d /usr/local include/* \ | ||
&& rm -f $PROTOC_ZIP | ||
shell: bash | ||
|
||
- name: cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo | ||
key: ${{ runner.os }}-cargo-${{ steps.cache-key-generator.outputs.cache-key }}-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: cache rust files | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ steps.cache-key-generator.outputs.cache-key }}-${{ hashFiles('**/*.rs') }} | ||
|
||
- name: Check rust version before | ||
run: | | ||
rustc --version || true; | ||
cargo --version || true; | ||
cargo clippy --version || true; | ||
cargo fmt --version || true; | ||
shell: bash | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: clippy, rustfmt | ||
|
||
- name: Check rust version after | ||
run: | | ||
rustc --version; | ||
cargo --version; | ||
cargo clippy --version; | ||
cargo fmt --version; | ||
shell: bash |
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 |
---|---|---|
|
@@ -13,6 +13,11 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: jpribyl/[email protected] | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
- name: Build containers | ||
run: docker compose build --progress=plain | ||
env: | ||
|
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
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,3 +9,4 @@ | |
.idea/ | ||
|
||
.env | ||
docker-output/ |
Oops, something went wrong.