CI: Do not forget to clone submodules

pull/173/head
Tpt 3 years ago
parent f32d940fbd
commit 32c873bebc
  1. 19
      .github/workflows/build.yml
  2. 2
      .github/workflows/doc.yml
  3. 20
      .github/workflows/release.yml

@ -22,6 +22,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update && rustup component add clippy
- run: cargo clippy --all-targets --all-features
@ -40,15 +42,6 @@ jobs:
env:
RUST_BACKTRACE: 1
test_wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup update
- run: cargo install wasm-pack
- run: wasm-pack test --node
working-directory: ./lib
js:
runs-on: ubuntu-latest
steps:
@ -64,6 +57,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- uses: actions/setup-python@v2
with:
@ -84,6 +79,8 @@ jobs:
needs: python
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.6
@ -96,6 +93,8 @@ jobs:
needs: python
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update && rustup target add aarch64-apple-darwin
- uses: actions/setup-python@v2
with:
@ -109,6 +108,8 @@ jobs:
needs: python
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.6

@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- uses: actions/setup-python@v2
with:

@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: docker/metadata-action@v3
id: docker_meta
with:
@ -30,6 +32,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: docker/metadata-action@v3
id: docker_meta
with:
@ -51,6 +55,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- run: cargo login $CRATES_IO_TOKEN
env:
@ -62,6 +68,8 @@ jobs:
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- run: cargo login $CRATES_IO_TOKEN
env:
@ -73,6 +81,8 @@ jobs:
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- run: cargo login $CRATES_IO_TOKEN
env:
@ -84,6 +94,8 @@ jobs:
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin:v0.11.1 publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python
@ -92,6 +104,8 @@ jobs:
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update && rustup target add aarch64-apple-darwin
- uses: actions/setup-python@v2
with:
@ -104,6 +118,8 @@ jobs:
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.6
@ -114,6 +130,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: 14
@ -132,6 +150,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rustup update
- uses: actions/setup-python@v2
with:

Loading…
Cancel
Save