Skip to content

Commit 5f06bb0

Browse files
authored
Support --panic-unwind worker-build option (#912)
1 parent 4f42fa4 commit 5f06bb0

File tree

17 files changed

+451
-240
lines changed

17 files changed

+451
-240
lines changed

.github/workflows/pullrequest.yml

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ${{ matrix.platform }}
1818

1919
steps:
20-
- uses: dtolnay/rust-toolchain@1.83.0
20+
- uses: dtolnay/rust-toolchain@1.87.0
2121
- uses: actions/checkout@v4
2222
with:
2323
submodules: true
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141

4242
steps:
43-
- uses: dtolnay/rust-toolchain@1.83.0
43+
- uses: dtolnay/rust-toolchain@1.87.0
4444

4545
- uses: actions/checkout@v4
4646
with:
@@ -88,7 +88,7 @@ jobs:
8888
needs: worker-build
8989
runs-on: ubuntu-latest
9090
steps:
91-
- uses: dtolnay/rust-toolchain@1.83.0
91+
- uses: dtolnay/rust-toolchain@1.87.0
9292
- uses: actions/checkout@v4
9393
with:
9494
submodules: true
@@ -127,7 +127,7 @@ jobs:
127127
name: Formatter
128128
runs-on: ubuntu-latest
129129
steps:
130-
- uses: dtolnay/rust-toolchain@1.83.0
130+
- uses: dtolnay/rust-toolchain@1.87.0
131131
with:
132132
components: rustfmt, clippy
133133

@@ -164,7 +164,7 @@ jobs:
164164
runs-on: ${{ matrix.platform }}
165165

166166
steps:
167-
- uses: dtolnay/rust-toolchain@1.83.0
167+
- uses: dtolnay/rust-toolchain@1.87.0
168168
- uses: actions/checkout@v4
169169
with:
170170
submodules: true
@@ -220,3 +220,45 @@ jobs:
220220

221221
- name: Run tests (http)
222222
run: chomp test-http
223+
224+
test-panic-unwind:
225+
name: Test (panic-unwind)
226+
needs: worker-build
227+
runs-on: ubuntu-latest
228+
229+
steps:
230+
- uses: dtolnay/rust-toolchain@nightly
231+
with:
232+
components: rust-src
233+
- uses: actions/checkout@v4
234+
with:
235+
submodules: true
236+
237+
- name: Setup Chomp
238+
uses: guybedford/chomp-action@v1
239+
env:
240+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241+
242+
- uses: actions/download-artifact@v4
243+
with:
244+
name: worker-build
245+
path: ./target/debug
246+
247+
- name: Make worker-build executable
248+
run: chmod +x ./target/debug/worker-build
249+
250+
- name: Cache Rust dependencies
251+
uses: actions/cache@v4
252+
with:
253+
path: ~/.cargo/registry ~/.cargo/git target
254+
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
255+
restore-keys: ${{ runner.os }}-cargo-nightly-
256+
257+
- name: Install npm dependencies
258+
run: npm ci
259+
260+
- name: Install wasm32 target
261+
run: rustup target add wasm32-unknown-unknown
262+
263+
- name: Run tests (panic-unwind)
264+
run: chomp test-panic-unwind

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "wasm-bindgen"]
22
path = wasm-bindgen
33
url = https://github.com/wasm-bindgen/wasm-bindgen
4+
[submodule "wasm-streams"]
5+
path = wasm-streams
6+
url = [email protected]:guybedford/wasm-streams.git

0 commit comments

Comments
 (0)