Skip to content

Commit b83bd70

Browse files
author
Bengt Lofgren
committed
workflow recurses submodule
1 parent 2f4b49f commit b83bd70

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/solana.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v4
32+
with:
33+
submodules: true
3234
- name: Install toolchain
3335
uses: dtolnay/rust-toolchain@master
3436
with:
3537
toolchain: ${{ env.RUSTC_VERSION }}
38+
- name: Git Submodule Update
39+
run: |
40+
git config --global user.email "[email protected]"
41+
git config --global user.name "GitHub Actions"
42+
git submodule update --init --recursive
43+
working-directory: ./solana
3644
- name: make cargo-test-all
3745
run: make cargo-test-all
3846
working-directory: ./solana
@@ -42,11 +50,19 @@ jobs:
4250
runs-on: ubuntu-latest
4351
steps:
4452
- uses: actions/checkout@v4
53+
with:
54+
submodules: true
4555
- name: Install toolchain
4656
uses: dtolnay/rust-toolchain@master
4757
with:
4858
toolchain: ${{ env.RUSTC_VERSION }}
4959
components: clippy, rustfmt
60+
- name: Git Submodule Update
61+
run: |
62+
git config --global user.email "[email protected]"
63+
git config --global user.name "GitHub Actions"
64+
git submodule update --init --recursive
65+
working-directory: ./solana
5066
- name: make lint
5167
run: make lint
5268
working-directory: ./solana
@@ -56,6 +72,8 @@ jobs:
5672
runs-on: ubuntu-latest
5773
steps:
5874
- uses: actions/checkout@v4
75+
with:
76+
submodules: true
5977
- uses: metadaoproject/setup-anchor@v2
6078
with:
6179
node-version: "20.11.0"
@@ -64,6 +82,12 @@ jobs:
6482
- name: Set default Rust toolchain
6583
run: rustup default stable
6684
working-directory: ./solana
85+
- name: Git Submodule Update
86+
run: |
87+
git config --global user.email "[email protected]"
88+
git config --global user.name "GitHub Actions"
89+
git submodule update --init --recursive
90+
working-directory: ./solana
6791
- name: make check-idl
6892
run: make check-idl
6993
working-directory: ./solana
@@ -73,6 +97,8 @@ jobs:
7397
runs-on: ubuntu-latest
7498
steps:
7599
- uses: actions/checkout@v4
100+
with:
101+
submodules: true
76102
- name: Install Foundry
77103
uses: foundry-rs/foundry-toolchain@v1
78104
with:
@@ -85,6 +111,12 @@ jobs:
85111
- name: Set default Rust toolchain
86112
run: rustup default stable
87113
working-directory: ./solana
114+
- name: Git Submodule Update
115+
run: |
116+
git config --global user.email "[email protected]"
117+
git config --global user.name "GitHub Actions"
118+
git submodule update --init --recursive
119+
working-directory: ./solana
88120
- name: make anchor-test
89121
run: make anchor-test
90122
working-directory: ./solana

0 commit comments

Comments
 (0)