Skip to content

Commit c4d176b

Browse files
committed
chore: update installation for forc-fmt
1 parent 6348e38 commit c4d176b

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ runs:
1919
- name: Init cache
2020
uses: Swatinem/rust-cache@v2
2121

22-
- name: Install Fuel toolchain
23-
uses: FuelLabs/action-fuel-toolchain@v0.6.0
24-
with:
25-
name: fuel-bridge
26-
components: ${{ inputs.forc-components }}
22+
# - name: Install Fuel toolchain
23+
# uses: FuelLabs/action-fuel-toolchain@v0.6.0
24+
# with:
25+
# name: fuel-bridge
26+
# components: ${{ inputs.forc-components }}

.github/workflows/pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,21 @@ jobs:
6969
username: ${{ github.repository_owner }}
7070
password: ${{ secrets.GITHUB_TOKEN }}
7171
- uses: ./.github/actions/setup-rust
72+
73+
- name: Forc Build
74+
run: |
75+
curl -sSLf https://github.com/FuelLabs/sway/releases/download/v${{ env.FORC_VERSION }}/forc-binaries-linux_amd64.tar.gz -L -o forc.tar.gz
76+
tar -xvf forc.tar.gz
77+
chmod +x forc-binaries/forc
78+
mv forc-binaries/forc /usr/local/bin/forc
79+
mv forc-binaries/forc-fmt /usr/local/bin/forc-fmt
80+
forc-fmt --check
81+
fi
82+
7283
7384
- name: Forc Build
7485
run: forc build --release
86+
7587

7688
- name: Build projects
7789
run: pnpm build

0 commit comments

Comments
 (0)