Skip to content

Commit

Permalink
fix CI to checkout submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiaayachi committed Mar 19, 2024
1 parent 63732e3 commit 3c95293
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -62,21 +62,23 @@ jobs:
go: [ '1.19', '1.20' ]
arch: [ 'x32', 'x64' ]
runs-on: ubuntu-22.04
env:
INTEG_TESTS: yes
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: ${{ matrix.go }}
architecture: ${{ matrix.arch }}
cache: true
submodules: true
# x86 specific build.
- if: matrix.arch == 'x32'
run: |
sudo apt-get update
sudo apt-get install gcc-multilib
go test raft-compat/...
cd raft-compat
go test ./...
# x86-64 specific build.
- if: matrix.arch == 'x64'
run: go test -race raft-compat/...
run: |
cd raft-compat
go test -race ./...

0 comments on commit 3c95293

Please sign in to comment.