Skip to content

Commit

Permalink
Add a --locked arg to more invocations of cargo in the CI. (#3884)
Browse files Browse the repository at this point in the history
  • Loading branch information
otrho authored Jan 25, 2023
1 parent 0a3beae commit 375e36e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Build sway-lib-core
run: forc build --path sway-lib-core

Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Build sway-lib-std
run: forc build --path sway-lib-std

Expand All @@ -64,17 +64,17 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Install Forc fmt
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc-plugins/forc-fmt
args: --locked --debug --path ./forc-plugins/forc-fmt
- name: Build Sway examples
uses: actions-rs/cargo@v1
with:
command: run
args: --bin examples-checker build --all-examples
args: --locked --bin examples-checker build --all-examples

forc-fmt-check-sway-examples:
runs-on: ubuntu-latest
Expand All @@ -89,17 +89,17 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Install Forc fmt
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc-plugins/forc-fmt
args: --locked --debug --path ./forc-plugins/forc-fmt
- name: Check Sway examples formatting
uses: actions-rs/cargo@v1
with:
command: run
args: --bin examples-checker fmt --all-examples
args: --locked --bin examples-checker fmt --all-examples

build-mdbook:
runs-on: ubuntu-latest
Expand All @@ -114,19 +114,19 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Install Forc plugins
run: |
cargo install --debug --path ./forc-plugins/forc-fmt
cargo install --debug --path ./forc-plugins/forc-lsp
cargo install --debug --path ./forc-plugins/forc-client
cargo install --debug --path ./forc-plugins/forc-tx
cargo install --debug forc-explore
cargo install --locked --debug --path ./forc-plugins/forc-fmt
cargo install --locked --debug --path ./forc-plugins/forc-lsp
cargo install --locked --debug --path ./forc-plugins/forc-client
cargo install --locked --debug --path ./forc-plugins/forc-tx
cargo install --locked --debug forc-explore
- name: Install mdbook-forc-documenter
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./scripts/mdbook-forc-documenter
args: --locked --debug --path ./scripts/mdbook-forc-documenter
- name: Run mdbook build
uses: peaceiris/actions-mdbook@v1
with:
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Initialize test project
run: forc new test-proj
- name: Update project forc manifest to use local sway-lib-std
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
args: --locked --debug --path ./forc
- name: Run Unit Tests
run: forc build --path sway-lib-core && forc test --path sway-lib-core && forc build --path sway-lib-std && forc test --path sway-lib-std

Expand Down

0 comments on commit 375e36e

Please sign in to comment.