Skip to content

Commit

Permalink
ci: use checkout submodules option
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox authored and yunwei37 committed Mar 13, 2023
1 parent 87a569e commit 3b07511
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: install deps
run: |
sudo make install-deps
Expand All @@ -24,8 +26,6 @@ jobs:
path: |
Makefile
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: get submodule
run: git submodule update --init --recursive
- name: make
run: make -C runtime/cpp
- name: make build-lib
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: get submodule
run: git submodule update --init --recursive --remote
with:
submodules: 'recursive'
- name: install deps
run: |
sudo make install-deps && sudo make /opt/wasi-sdk
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-asserts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: install deps
run: |
sudo make install-deps
Expand All @@ -42,8 +44,6 @@ jobs:
path: |
Makefile
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: get submodule
run: git submodule update --init --recursive
- name: make
run: make -C runtime/cpp
- name: examples with cpp runtime
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ jobs:
- name: Cache rust
uses: Swatinem/rust-cache@v2
with:
workspaces: |
runtime/wasm-bpf-rs
runtime/cmd
workspaces: runtime

- name: Build runtime
run: make build-rust
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ jobs:
- name: Cache rust
uses: Swatinem/rust-cache@v2
with:
workspaces: |
runtime/wasm-bpf-rs
runtime/cmd
workspaces: runtime

- name: Build
run: make build-rust
Expand Down

0 comments on commit 3b07511

Please sign in to comment.