diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 55ce5850..b956b304 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -44,6 +44,8 @@ jobs: - name: Install Rust-Cache for Github actions uses: Swatinem/rust-cache@v1 + with: + working-directory: ${{ env.RUST_DIR }} - name: Install `quickinstall` uses: actions-rs/cargo@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68206a7d..15064353 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,8 @@ jobs: - name: Install Rust-Cache for Github actions uses: Swatinem/rust-cache@v1 + with: + working-directory: ${{ env.RUST_DIR }} - name: Install `quickinstall` uses: actions-rs/cargo@v1 @@ -67,7 +69,7 @@ jobs: override: true - name: Rust publish - working-directory: ${{ env.RUST_DIR }}/modelator + working-directory: ${{ env.RUST_DIR }} run: | cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f2762a81..adad0de0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,6 +38,8 @@ jobs: toolchain: stable override: true - uses: Swatinem/rust-cache@v1 + with: + working-directory: rs - uses: actions-rs/cargo@v1 with: command: test @@ -45,7 +47,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --manifest-path rs/Cargo.toml -- --test-threads=1 + args: --manifest-path rs/Cargo.toml - name: Setup tmate session if: ${{ failure() }} uses: mxschmitt/action-tmate@v3 @@ -64,6 +66,8 @@ jobs: toolchain: stable override: true - uses: Swatinem/rust-cache@v1 + with: + working-directory: rs - run: rustup component add rustfmt - uses: actions-rs/cargo@v1 with: @@ -81,6 +85,8 @@ jobs: toolchain: stable override: true - uses: Swatinem/rust-cache@v1 + with: + working-directory: rs - uses: actions-rs/cargo@v1 with: command: doc @@ -97,6 +103,8 @@ jobs: toolchain: stable override: true - uses: Swatinem/rust-cache@v1 + with: + working-directory: rs - run: rustup component add clippy - uses: actions-rs/cargo@v1 with: