Skip to content

Commit

Permalink
RM redundant cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uacias committed Dec 11, 2024
1 parent 7ad3110 commit d12a918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: ci

# on:
# push:
# branches:
# - main
# pull_request:

# on:
# workflow_dispatch:

on:
push:
branches:
- 'feat/**'
- main
pull_request:


env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.80.0

jobs:
build:
runs-on: arc-runner-set
runs-on: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -50,13 +41,13 @@ jobs:
PAYMASTER_ACCOUNT_ADDRESS: "0x127fd5f1fe78a71f8bcd1fec63e3fe2f0486b6ecd5c86a0466c3a21fa5cfcec"
UDC_ADDRESS: "0x41a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf"
ACCOUNT_CLASS_HASH: "0x07dc7899aa655b0aae51eadff6d801a58e97dd99cf4666ee59e704249e51adf2"
SCARB_VERSION: "2.8.4"
steps:
- name: Checkout main repository
uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get update && \
sudo apt-get install -y build-essential libclang-dev git curl bash libssl-dev pkg-config
- name: Install Rust toolchain
Expand All @@ -70,7 +61,7 @@ jobs:
- name: Install Scarb via script
run: |
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v 2.8.4
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v $SCARB_VERSION
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Cache target directory
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/openrpc-testgen-v4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openrpc-testgenv4
on:
push:
branches:
- 'uacias/**'
- 'feat/**'
workflow_dispatch:

env:
Expand Down Expand Up @@ -79,14 +79,6 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v 2.8.4
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Cache target directory
uses: actions/cache@v3
with:
path: katana-runner/target
key: ${{ runner.os }}-cargo-${{ hashFiles('katana-runner/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Download katana binary
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit d12a918

Please sign in to comment.