Skip to content

Commit ee71541

Browse files
committed
Merge branch 'master' into dani/ci-no-capture
2 parents cbb4666 + 1153d4f commit ee71541

File tree

228 files changed

+12169
-7443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+12169
-7443
lines changed

.github/scripts/matrices.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def __init__(
6767

6868
profile = os.environ.get("PROFILE")
6969
is_pr = os.environ.get("EVENT_NAME") == "pull_request"
70-
t_linux_x86 = Target("ubuntu-latest", "x86_64-unknown-linux-gnu", "linux-amd64")
71-
t_linux_arm = Target("ubuntu-24.04-arm", "aarch64-unknown-linux-gnu", "linux-aarch64")
72-
t_macos = Target("macos-latest", "aarch64-apple-darwin", "macosx-aarch64")
73-
t_windows = Target("windows-latest", "x86_64-pc-windows-msvc", "windows-amd64")
70+
t_linux_x86 = Target("depot-ubuntu-latest-8", "x86_64-unknown-linux-gnu", "linux-amd64")
71+
t_linux_arm = Target("depot-ubuntu-24.04-arm-8", "aarch64-unknown-linux-gnu", "linux-aarch64")
72+
t_macos = Target("depot-macos-latest-8", "aarch64-apple-darwin", "macosx-aarch64")
73+
t_windows = Target("depot-windows-latest-8", "x86_64-pc-windows-msvc", "windows-amd64")
7474
targets = (
7575
[t_linux_x86, t_windows]
7676
if is_pr
@@ -79,27 +79,15 @@ def __init__(
7979

8080
config = [
8181
Case(
82-
name="unit",
83-
filter="!kind(test)",
82+
name="test",
83+
filter="!test(/\\bext_integration/)",
8484
n_partitions=1,
8585
pr_cross_platform=True,
8686
),
8787
Case(
88-
name="integration",
89-
filter="kind(test) & !test(/\\b(issue|ext_integration)/)",
90-
n_partitions=3,
91-
pr_cross_platform=True,
92-
),
93-
Case(
94-
name="integration / issue-repros",
95-
filter="package(=forge) & test(/\\bissue/)",
96-
n_partitions=2,
97-
pr_cross_platform=False,
98-
),
99-
Case(
100-
name="integration / external",
88+
name="external test",
10189
filter="package(=forge) & test(/\\bext_integration/)",
102-
n_partitions=2,
90+
n_partitions=1,
10391
pr_cross_platform=False,
10492
),
10593
]

.github/workflows/benchmarks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ env:
2424
ITHACAXYZ_ACCOUNT: "ithacaxyz/account:v0.3.2"
2525
VECTORIZED_SOLADY: "Vectorized/solady:v0.1.22"
2626
DEFAULT_REPOS: "ithacaxyz/account:v0.3.2,Vectorized/solady:v0.1.22"
27+
RUSTC_WRAPPER: "sccache"
2728

2829
jobs:
2930
run-benchmarks:
3031
name: Run All Benchmarks
31-
runs-on: foundry-runner
32+
runs-on: depot-ubuntu-24.04
3233
permissions:
3334
contents: write
3435
steps:
@@ -47,11 +48,10 @@ jobs:
4748
with:
4849
toolchain: stable
4950

50-
- name: Cache Rust dependencies
51-
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
52-
with:
53-
workspaces: |
54-
./
51+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
52+
53+
- name: Run sccache-cache
54+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
5555

5656
- name: Setup Foundry
5757
env:
@@ -155,7 +155,7 @@ jobs:
155155
publish-results:
156156
name: Publish Results
157157
needs: run-benchmarks
158-
runs-on: foundry-runner
158+
runs-on: depot-ubuntu-24.04
159159
permissions:
160160
contents: write
161161
pull-requests: write

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
3333
with:
3434
toolchain: stable
35+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
3536
- name: Install gcc aarch64
3637
id: aarch_64_setup
3738
run: |

.github/workflows/nextest.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ concurrency:
1818
env:
1919
CARGO_TERM_COLOR: always
2020
RUST_BACKTRACE: full
21+
RUSTC_WRAPPER: "sccache"
2122

2223
jobs:
2324
matrices:
2425
name: build matrices
25-
runs-on: ubuntu-latest
26+
runs-on: depot-ubuntu-latest
2627
permissions:
2728
contents: read
2829
outputs:
@@ -65,7 +66,8 @@ jobs:
6566
with:
6667
toolchain: stable
6768
target: ${{ matrix.target }}
68-
- uses: taiki-e/install-action@8ea32481661d5e04d602f215b94f17e4014b44f9 # v2
69+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
70+
- uses: taiki-e/install-action@cd39cb0572834c149bf3533a143f05e09def0f3c # v2
6971
with:
7072
tool: nextest
7173

@@ -95,9 +97,8 @@ jobs:
9597
~/.foundry/cache
9698
~/.config/.foundry/cache
9799
key: rpc-cache-${{ hashFiles('crates/forge/tests/rpc-cache-keyfile') }}
98-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
99-
with:
100-
cache-on-failure: true
100+
- name: Run sccache-cache
101+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
101102
- name: Setup Git config
102103
run: |
103104
git config --global user.name "GitHub Actions Bot"

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
jobs:
2323
prepare:
2424
name: Prepare release
25-
runs-on: ubuntu-latest
25+
runs-on: depot-ubuntu-latest
2626
timeout-minutes: 30
2727
permissions:
2828
contents: write
@@ -100,22 +100,22 @@ jobs:
100100
# `target`: Rust build target triple
101101
# `platform` and `arch`: Used in tarball names
102102
# `svm`: target platform to use for the Solc binary: https://github.com/roynalnaruto/svm-rs/blob/84cbe0ac705becabdc13168bae28a45ad2299749/svm-builds/build.rs#L4-L24
103-
- runner: Linux-22.04
103+
- runner: depot-ubuntu-24.04
104104
target: x86_64-unknown-linux-gnu
105105
svm_target_platform: linux-amd64
106106
platform: linux
107107
arch: amd64
108-
- runner: Linux-22.04
108+
- runner: depot-ubuntu-24.04
109109
target: x86_64-unknown-linux-musl
110110
svm_target_platform: linux-amd64
111111
platform: alpine
112112
arch: amd64
113-
- runner: Linux-22.04
113+
- runner: depot-ubuntu-24.04
114114
target: aarch64-unknown-linux-gnu
115115
svm_target_platform: linux-aarch64
116116
platform: linux
117117
arch: arm64
118-
- runner: Linux-22.04
118+
- runner: depot-ubuntu-24.04
119119
target: aarch64-unknown-linux-musl
120120
svm_target_platform: linux-aarch64
121121
platform: alpine
@@ -127,12 +127,12 @@ jobs:
127127
svm_target_platform: macosx-amd64
128128
platform: darwin
129129
arch: amd64
130-
- runner: macos-latest-large
130+
- runner: depot-macos-latest
131131
target: aarch64-apple-darwin
132132
svm_target_platform: macosx-aarch64
133133
platform: darwin
134134
arch: arm64
135-
- runner: Windows
135+
- runner: depot-windows-latest
136136
target: x86_64-pc-windows-msvc
137137
svm_target_platform: windows-amd64
138138
platform: win32
@@ -145,6 +145,7 @@ jobs:
145145
with:
146146
toolchain: stable
147147
targets: ${{ matrix.target }}
148+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
148149

149150
- name: Apple M1 setup
150151
if: matrix.target == 'aarch64-apple-darwin'

.github/workflows/test.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515
env:
1616
CARGO_TERM_COLOR: always
1717
RUST_BACKTRACE: full
18+
RUSTC_WRAPPER: "sccache"
1819

1920
jobs:
2021
nextest:
@@ -26,7 +27,7 @@ jobs:
2627
secrets: inherit
2728

2829
docs:
29-
runs-on: ubuntu-latest
30+
runs-on: depot-ubuntu-latest
3031
timeout-minutes: 30
3132
permissions:
3233
contents: read
@@ -37,9 +38,9 @@ jobs:
3738
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
3839
with:
3940
toolchain: nightly
40-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
41-
with:
42-
cache-on-failure: true
41+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
42+
- name: Run sccache-cache
43+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
4344
- name: Build documentation
4445
run: cargo doc --workspace --all-features --no-deps --document-private-items
4546
env:
@@ -54,7 +55,7 @@ jobs:
5455
deploy-docs:
5556
if: github.ref_name == 'master' && github.event_name == 'push'
5657
needs: [docs]
57-
runs-on: ubuntu-latest
58+
runs-on: depot-ubuntu-latest
5859
timeout-minutes: 30
5960
permissions:
6061
pages: write
@@ -68,7 +69,7 @@ jobs:
6869
uses: actions/deploy-pages@v4
6970

7071
doctest:
71-
runs-on: ubuntu-latest
72+
runs-on: depot-ubuntu-latest
7273
timeout-minutes: 30
7374
permissions:
7475
contents: read
@@ -79,13 +80,13 @@ jobs:
7980
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
8081
with:
8182
toolchain: stable
82-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
83-
with:
84-
cache-on-failure: true
83+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
84+
- name: Run sccache-cache
85+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
8586
- run: cargo test --workspace --doc
8687

8788
typos:
88-
runs-on: ubuntu-latest
89+
runs-on: depot-ubuntu-latest
8990
timeout-minutes: 30
9091
permissions:
9192
contents: read
@@ -96,7 +97,7 @@ jobs:
9697
- uses: crate-ci/typos@85f62a8a84f939ae994ab3763f01a0296d61a7ee # v1
9798

9899
clippy:
99-
runs-on: ubuntu-latest
100+
runs-on: depot-ubuntu-latest
100101
timeout-minutes: 30
101102
permissions:
102103
contents: read
@@ -108,15 +109,15 @@ jobs:
108109
with:
109110
toolchain: nightly
110111
components: clippy
111-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
112-
with:
113-
cache-on-failure: true
112+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
113+
- name: Run sccache-cache
114+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
114115
- run: cargo clippy --workspace --all-targets --all-features
115116
env:
116117
RUSTFLAGS: -Dwarnings
117118

118119
rustfmt:
119-
runs-on: ubuntu-latest
120+
runs-on: depot-ubuntu-latest
120121
timeout-minutes: 30
121122
permissions:
122123
contents: read
@@ -131,7 +132,7 @@ jobs:
131132
- run: cargo fmt --all --check
132133

133134
forge-fmt:
134-
runs-on: ubuntu-latest
135+
runs-on: depot-ubuntu-latest
135136
timeout-minutes: 30
136137
permissions:
137138
contents: read
@@ -142,15 +143,15 @@ jobs:
142143
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
143144
with:
144145
toolchain: stable
145-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
146-
with:
147-
cache-on-failure: true
146+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
147+
- name: Run sccache-cache
148+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
148149
- name: forge fmt
149150
shell: bash
150151
run: ./.github/scripts/format.sh --check
151152

152153
crate-checks:
153-
runs-on: ubuntu-latest
154+
runs-on: depot-ubuntu-latest
154155
timeout-minutes: 30
155156
permissions:
156157
contents: read
@@ -161,12 +162,12 @@ jobs:
161162
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
162163
with:
163164
toolchain: stable
164-
- uses: taiki-e/install-action@8ea32481661d5e04d602f215b94f17e4014b44f9 # v2
165+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
166+
- uses: taiki-e/install-action@cd39cb0572834c149bf3533a143f05e09def0f3c # v2
165167
with:
166168
tool: cargo-hack
167-
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
168-
with:
169-
cache-on-failure: true
169+
- name: Run sccache-cache
170+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
170171
- run: cargo hack check
171172

172173
deny:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_STORE
22
/target*
3+
/*.sol
34
out/
45
snapshots/
56
out.json

0 commit comments

Comments
 (0)