diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3dd3361..35daf1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,13 @@ name: CI + on: push: branches: [main, development] pull_request: branches: [development] + jobs: tests: runs-on: "${{ matrix.platform.os }}-latest" @@ -30,8 +32,8 @@ jobs: path: | ~/.cargo ./target - key: ${{ runner.os }}-cargo-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.toml') }} - restore-keys: ${{ runner.os }}-cargo-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-${{ matrix.platform.target }}-${{ hashFiles('Cargo.toml') }} + restore-keys: ${{ runner.os }}-cargo-${{ matrix.platform.target }} - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -78,8 +80,8 @@ jobs: path: | ~/.cargo ./target - key: ${{ runner.os }}-cargo-features-${{ hashFiles('**/Cargo.toml') }} - restore-keys: ${{ runner.os }}-cargo-features-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-features-${{ hashFiles('Cargo.toml') }} + restore-keys: ${{ runner.os }}-cargo-features - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: