Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): docker rate limit #1804

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ inputs:
setup_gcc:
description: "Whether to setup GCC or not"
required: false
default: 'true'
default: "true"
setup_aws_cli:
description: "Whether to install AWS CLI or not"
required: false
default: 'true'
default: "true"
gh_token:
description: 'The Github token to use for the action'
required: true
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -51,7 +54,7 @@ runs:

- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Install AWS CLI v2
if: inputs.setup_aws_cli == 'true'
Expand Down Expand Up @@ -101,6 +104,13 @@ runs:
else
echo "pkg-config and libssl-dev are already installed."
fi

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ inputs.gh_token }}
23 changes: 0 additions & 23 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,6 @@ on:
merge_group:

jobs:
# test:
# runs-on: ubuntu-latest
# name: test
# timeout-minutes: 60

# steps:
# - uses: actions/checkout@v4

# - name: Install mdbook
# run: |
# mkdir mdbook
# curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
# echo $(pwd)/mdbook >> $GITHUB_PATH

# - name: Install mdbook-template
# run: |
# mkdir mdbook-template
# curl -sSL https://github.com/sgoudham/mdbook-template/releases/latest/download/mdbook-template-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-template
# echo $(pwd)/mdbook-template >> $GITHUB_PATH

# - name: Run tests
# run: mdbook test

lint:
runs-on: ubuntu-latest
name: lint
Expand Down
35 changes: 27 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run cargo check
Expand Down Expand Up @@ -80,12 +82,15 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}


- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run cargo check
Expand Down Expand Up @@ -117,12 +122,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run cargo fmt
Expand Down Expand Up @@ -160,12 +167,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Check workspace no features
Expand Down Expand Up @@ -204,12 +213,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run cargo fmt
Expand Down Expand Up @@ -238,12 +249,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run cargo prove new
Expand Down Expand Up @@ -272,12 +285,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run Evaluation
Expand Down Expand Up @@ -319,12 +334,14 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --path .
cargo install --force --locked --path .
cargo clean

- name: Run tendermint script
Expand Down Expand Up @@ -470,6 +487,8 @@ jobs:

- name: Setup CI
uses: ./.github/actions/setup
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Remove lock files"
run: |
Expand Down
Loading