ci: use bash script instead of reusable workflow #1942
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI checks | |
on: push | |
jobs: | |
cargo-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Run test script | |
run: | | |
bash .github/scripts/cargo.sh | |
cargo-publish: | |
needs: | |
- cargo-test | |
uses: Cosmian/reusable_workflows/.github/workflows/cargo-publish.yml@develop | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
toolchain: stable | |
secrets: inherit | |
cleanup: | |
needs: | |
- cargo-test | |
uses: Cosmian/reusable_workflows/.github/workflows/cleanup_cache.yml@develop | |
secrets: inherit |