diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index eb6dd0d..4be9b0c 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -1,26 +1,27 @@ name: Fmt on: - push: - branches: - - main - pull_request: - workflow_dispatch: + push: + branches: + - main + pull_request: + workflow_dispatch: jobs: - pre_ci: - uses: dtolnay/.github/.github/workflows/pre_ci.yml@master - fmt_and_lint: - needs: pre_ci - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v4 - - - name: Install Rust - uses: IronCoreLabs/rust-toolchain@v1 - - - name: Rust fmt - run: cargo fmt --all -- --check - - - name: Rust clippy - run: cargo clippy + pre_ci: + uses: dtolnay/.github/.github/workflows/pre_ci.yml@master + fmt_and_lint: + needs: pre_ci + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Install Rust + uses: IronCoreLabs/rust-toolchain@v1 + + - name: Rust fmt + run: cargo fmt --all -- --check + + - name: Rust clippy + run: cargo clippy diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7512948..30577c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.2.2 + with: + submodules: true - uses: IronCoreLabs/rust-toolchain@v1 - uses: dtolnay/install@cargo-docs-rs - run: cargo docs-rs @@ -21,6 +23,8 @@ jobs: needs: ensure-doc steps: - uses: actions/checkout@v4.2.2 + with: + submodules: true - name: Retreive version from Cargo.toml id: new-version