Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 4 additions & 0 deletions .github/workflows/ci-all-via-ir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:
forge test --use 0.8.16 --via-ir &&
forge test --use 0.8.17 --via-ir
) ||
# NOTE: skipping solc 0.8.32 due to compiler bug
# https://github.com/argotorg/solidity/issues/16360
( [ "${{ matrix.profile }}" = "via-ir-3" ] &&
forge test --use 0.8.33 --via-ir &&
forge test --use 0.8.31 --via-ir &&
forge test --use 0.8.30 --via-ir &&
forge test --use 0.8.29 --via-ir &&
forge test --use 0.8.28 --via-ir &&
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
profile: [post-prague,post-prague-via-ir,solc-past-versions-0,solc-past-versions-1,via-ir,min-solc,min-solc-via-ir,intense]
profile: [post-osaka,post-osaka-via-ir,solc-past-versions-0,solc-past-versions-1,via-ir,min-solc,min-solc-via-ir,intense]
steps:
- uses: actions/checkout@v5
- name: Install Foundry Stable
Expand All @@ -27,13 +27,13 @@ jobs:
run: forge install
- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "post-prague" ] &&
FOUNDRY_PROFILE=post_prague forge test --use 0.8.30 &&
FOUNDRY_PROFILE=zksync forge test --use 0.8.30
( [ "${{ matrix.profile }}" = "post-osaka" ] &&
FOUNDRY_PROFILE=post_osaka forge test --use 0.8.33 &&
FOUNDRY_PROFILE=zksync forge test --use 0.8.33
) ||
( [ "${{ matrix.profile }}" = "post-prague-via-ir" ] &&
FOUNDRY_PROFILE=post_prague forge test --use 0.8.30 --via-ir &&
FOUNDRY_PROFILE=zksync forge test --use 0.8.30 --via-ir
( [ "${{ matrix.profile }}" = "post-osaka-via-ir" ] &&
FOUNDRY_PROFILE=post_osaka forge test --use 0.8.33 --via-ir &&
FOUNDRY_PROFILE=zksync forge test --use 0.8.33 --via-ir
) ||
( [ "${{ matrix.profile }}" = "solc-past-versions-0" ] &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.5 --fuzz-runs 16 &&
Expand All @@ -45,6 +45,8 @@ jobs:
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.11 --fuzz-runs 16 &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.12 --fuzz-runs 16
) ||
# NOTE: skipping solc 0.8.32 due to compiler bug
# https://github.com/argotorg/solidity/issues/16360
( [ "${{ matrix.profile }}" = "solc-past-versions-1" ] &&
forge test --use 0.8.13 --fuzz-runs 16 &&
forge test --use 0.8.14 --fuzz-runs 16 &&
Expand All @@ -62,8 +64,9 @@ jobs:
forge test --use 0.8.26 --fuzz-runs 16 &&
forge test --use 0.8.27 --fuzz-runs 16 &&
forge test --use 0.8.28 --fuzz-runs 16 &&
forge test --use 0.8.29 --fuzz-runs 16

forge test --use 0.8.29 --fuzz-runs 16 &&
forge test --use 0.8.30 --fuzz-runs 16 &&
forge test --use 0.8.31 --fuzz-runs 16
) ||
( [ "${{ matrix.profile }}" = "via-ir" ] &&
forge test --via-ir
Expand Down
8 changes: 4 additions & 4 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# The Default Profile
[profile.default]
solc_version = "0.8.30"
evm_version = "paris" # Cancun will be tested in the CI.
solc_version = "0.8.33"
evm_version = "paris" # osaka will be tested in the CI.
auto_detect_solc = false
optimizer = true
optimizer_runs = 1_000
Expand All @@ -20,8 +20,8 @@ remappings = [
skip = ["*/g/*", "*/*7702*", "*/*BlockHashLib*", "*/*Transient*", "*/ext/ithaca/*", "*/ext/zksync/*"]


[profile.post_prague]
evm_version = "prague"
[profile.post_osaka]
evm_version = "osaka"
skip = ["*/ext/ithaca/*"]

[profile.zksync]
Expand Down
Loading