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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: true
- run: rustup update && rustup component add clippy - run: rustup update && rustup component add clippy
- run: cargo clippy --all-targets --all-features - run: cargo clippy --all-targets --all-features
@ -40,15 +42,6 @@ jobs:
env: env:
RUST_BACKTRACE: 1 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: js:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -64,6 +57,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: true
- run: rustup update - run: rustup update
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
@ -84,6 +79,8 @@ jobs:
needs: python needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
@ -96,6 +93,8 @@ jobs:
needs: python needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: true
- run: rustup update && rustup target add aarch64-apple-darwin - run: rustup update && rustup target add aarch64-apple-darwin
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
@ -109,6 +108,8 @@ jobs:
needs: python needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6

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

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

Loading…
Cancel
Save