Skip to content

Commit

Permalink
ci: make ci little pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
otani88 committed Sep 18, 2024
1 parent fa1bcbc commit 22de199
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ jobs:
yarn
echo "release_tag=${{ inputs.prefix }}-${{ inputs.commit }}" >> $GITHUB_OUTPUT
- name: Build contracts
- name: Build l1 contracts
working-directory: l1-contracts
run: |
forge build
- name: Build l2 contracts
working-directory: l2-contracts
run: |
forge build --zksync --zk-enable-eravm-extensions
- name: Build system-contracts
working-directory: system-contracts
run: |
cd l1-contracts/ && forge build
cd ..
cd l2-contracts/ && forge build --zksync --zk-enable-eravm-extensions
cd ..
cd system-contracts
yarn install
yarn preprocess:system-contracts
forge build --zksync --zk-enable-eravm-extensions
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/l1-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ jobs:
node-version: 18.18.0
cache: yarn

- name: Build artifacts
run: cd l1-contracts/ && forge build
- name: Build l1 contracts
working-directory: l1-contracts
run: |
forge build
- name: Build L2 artifacts
run: cd l2-contracts/ && forge build --zksync --zk-enable-eravm-extensions
- name: Build l2 contracts
working-directory: l2-contracts
run: |
forge build --zksync --zk-enable-eravm-extensions
- name: Create cache
uses: actions/cache/save@v3
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/l2-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
- name: Install dependencies
run: yarn

- name: Build artifacts
run: cd l1-contracts/ && forge build
- name: Build l1 contracts
working-directory: l1-contracts
run: |
forge build
- name: Build L2 artifacts
run: cd l2-contracts/ && forge build --zksync --zk-enable-eravm-extensions
- name: Build l2 contracts
working-directory: l2-contracts
run: |
forge build --zksync --zk-enable-eravm-extensions
- name: Create cache
uses: actions/cache/save@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ jobs:
rm -rf ./l1-contracts/contracts/dev-contracts/test/VerifierRecursiveTest.sol
- name: Run Slither
working-directory: l1-contracts
run: |
cd l1-contracts
slither --config ./slither.config.json .
2 changes: 1 addition & 1 deletion .github/workflows/system-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
cache: yarn

- name: Build artifacts
working-directory: system-contracts
run: |
cd system-contracts
yarn install
yarn preprocess:system-contracts
forge build --zksync --zk-enable-eravm-extensions
Expand Down

0 comments on commit 22de199

Please sign in to comment.