Skip to content

Commit

Permalink
Merge branch 'bh/package-revamp-part-2' into bh/package-revamp-part-3
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Aug 20, 2024
2 parents 2ebd78b + 618f58c commit 47351eb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/foundry-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
- run: yarn
- run: forge build --contracts contracts/l1-contracts

build-l2:
name: Build L2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
- run: yarn
- run: forge build --contracts contracts/l2-contracts
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "lib/openzeppelin-contracts-v4"]
path = lib/openzeppelin-contracts-v4
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-upgradeable-v4"]
path = lib/openzeppelin-contracts-upgradeable-v4
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ optimizer-runs = 9999999
src = 'contracts'
out = 'out'
cache_path = 'cache_forge'
libs = ['node_modules']
libs = ["lib"]
1 change: 1 addition & 0 deletions lib/openzeppelin-contracts-upgradeable-v4
1 change: 1 addition & 0 deletions lib/openzeppelin-contracts-v4
4 changes: 2 additions & 2 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"@openzeppelin/contracts-v4/=node_modules/@openzeppelin/contracts-v4/"
"@openzeppelin/contracts-upgradeable-v4/=node_modules/@openzeppelin/contracts-upgradeable-v4/"
@openzeppelin/contracts-v4/=lib/openzeppelin-contracts-v4/contracts/
@openzeppelin/contracts-upgradeable-v4/=lib/openzeppelin-contracts-upgradeable-v4/contracts/

0 comments on commit 47351eb

Please sign in to comment.