Skip to content

Commit cd0af3b

Browse files
committed
fix(ci): bump Rust version in workflows to 1.87
This also updates wasm Rust targets as the wasm32-wasi target was renamed to wasm32-wasip1
1 parent ef60b07 commit cd0af3b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191
nodeVersion: 18
9292
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
9393
with:
94-
toolchain: 1.65.0
95-
target: wasm32-wasi
94+
toolchain: 1.87.0
95+
target: wasm32-wasip1
9696
override: true
9797
- name: Build SWC plugin
9898
working-directory: ./packages/presets/swc-plugin
@@ -175,8 +175,8 @@ jobs:
175175
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
176176
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
177177
with:
178-
toolchain: 1.65.0
179-
target: wasm32-wasi
178+
toolchain: 1.87.0
179+
target: wasm32-wasip1
180180
override: true
181181
- uses: marcopolo/cargo@a527bf4d534717ff4424a84446c5d710f8833139
182182
with:

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
registry-url: 'https://registry.npmjs.org'
1515
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
1616
with:
17-
toolchain: 1.65.0
18-
target: wasm32-wasi
17+
toolchain: 1.87.0
18+
target: wasm32-wasip1
1919
override: true
2020
- name: Build SWC plugin
2121
working-directory: ./packages/presets/swc-plugin

packages/presets/swc-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"main": "swc_plugin.wasm",
1313
"scripts": {
14-
"build-wasm": "cargo build --target wasm32-wasi --release && cp target/wasm32-wasi/release/swc_plugin.wasm ./",
15-
"debug": "cargo build --target wasm32-wasi && cp target/wasm32-wasi/debug/swc_plugin.wasm ./"
14+
"build-wasm": "cargo build --target wasm32-wasip1 --release && cp target/wasm32-wasip1/release/swc_plugin.wasm ./",
15+
"debug": "cargo build --target wasm32-wasip1 && cp target/wasm32-wasip1/debug/swc_plugin.wasm ./"
1616
},
1717
"homepage": "https://the-guild.dev/graphql/codegen/plugins/presets/preset-client",
1818
"repository": {

0 commit comments

Comments
 (0)