Skip to content

Commit 608fc52

Browse files
gh-pages workflow update to remove archived actions-rs (#7380)
## Description Updated the `github pages` workflow; switch from `actions-rs/toolchain@v1` to `dtolnay/rust-toolchain@master` for rust env setup. Also added the `wasm32-unknown-unknown` target. Completely removed `actions-rs` actions - since these are now archived. Inlined the `actions-rs/cargo@v1` to `cargo install` - since the toolchain/binary is available via `dtolnay/rust-toolchain` action. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: z <zees-dev@users.noreply.github.com> Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
1 parent 4552c75 commit 608fc52

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
tags:
88
- v*
9+
workflow_dispatch:
10+
11+
env:
12+
RUST_VERSION: 1.86.0
913

1014
jobs:
1115
deploy:
@@ -14,15 +18,16 @@ jobs:
1418
- uses: actions/checkout@v3
1519

1620
- uses: Swatinem/rust-cache@v1
17-
- uses: actions-rs/toolchain@v1
21+
22+
- name: Install toolchain
23+
uses: dtolnay/rust-toolchain@master
1824
with:
19-
profile: minimal
20-
toolchain: stable
25+
toolchain: ${{ env.RUST_VERSION }}
26+
targets: wasm32-unknown-unknown
27+
2128
- name: Install Forc
22-
uses: actions-rs/cargo@v1
23-
with:
24-
command: install
25-
args: --locked --debug --path ./forc
29+
run: cargo install --locked --debug --path ./forc
30+
2631
- name: Install Forc plugins
2732
run: |
2833
cargo install --locked --debug --path ./forc-plugins/forc-client
@@ -35,11 +40,9 @@ jobs:
3540
cargo install --locked --debug --path ./forc-plugins/forc-migrate
3641
cargo install --locked --debug --path ./forc-plugins/forc-node
3742
cargo install --locked --debug --path ./forc-plugins/forc-publish
43+
3844
- name: Install mdbook-forc-documenter
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: install
42-
args: --locked --debug --path ./scripts/mdbook-forc-documenter
45+
run: cargo install --locked --debug --path ./scripts/mdbook-forc-documenter
4346

4447
- name: Setup mdBook
4548
uses: peaceiris/actions-mdbook@v1

0 commit comments

Comments
 (0)