Skip to content

Commit

Permalink
chore: optimize build size
Browse files Browse the repository at this point in the history
  • Loading branch information
zsluedem committed Nov 6, 2023
1 parent f50ca8f commit e266891
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
name: Silius - ERC-4337 bundler in Rust
runs-on: ubuntu-latest
steps:
# github action worker got about 14GB available space for building which is not enough
# remove some unused binary in the image to get more spaces
- name: Make more space to compilation
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v2

- name: Setup Rust toolchain
Expand All @@ -21,7 +29,9 @@ jobs:

- name: Install cargo tools
run: |
cargo install cargo-sort cargo-udeps
curl -L https://github.com/DevinR528/cargo-sort/releases/download/v1.0.9/cargo-sort-x86_64-unknown-linux-gnu.tar.gz | tar -zxvf - -C ~/.cargo/bin/
curl -L https://github.com/est31/cargo-udeps/releases/download/v0.1.43/cargo-udeps-v0.1.43-x86_64-unknown-linux-gnu.tar.gz | tar -xzvf - -C /tmp/
mv /tmp/cargo-udeps-v0.1.43-x86_64-unknown-linux-gnu/cargo-udeps ~/.cargo/bin/
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -66,7 +76,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: silius
path: target/release/silius
path: target/debug/silius

- name: Lint
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
cargo build --release
cargo build

run-silius:
cargo run --release -- bundler --eth-client-address http://127.0.0.1:8545 --mnemonic-file ${HOME}/.silius/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --entry-points 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 --http --ws
Expand Down

0 comments on commit e266891

Please sign in to comment.