diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cd8f1bb..fde00fb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,28 +27,27 @@ jobs: - uses: actions/checkout@v3 - name: Check run: cargo check -# TODO: not needed for now -# build: -# runs-on: ubuntu-latest -# needs: check -# steps: -# - name: Cache -# uses: actions/cache@v3.0.11 -# with: -# path: | -# ~/.cargo/bin/ -# ~/.cargo/registry/index/ -# ~/.cargo/registry/cache/ -# ~/.cargo/git/db/ -# ~/cargo-target/ -# key: "rust-build" -# - uses: actions/checkout@v3 -# - name: Build -# run: cargo build - test: + build: runs-on: ubuntu-latest needs: check steps: + - name: Cache + uses: actions/cache@v3.0.11 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + ~/cargo-target/ + key: "rust-build" + - uses: actions/checkout@v3 + - name: Build + run: cargo build + test: + runs-on: ubuntu-latest + needs: build + steps: - name: Cache uses: actions/cache@v3.0.11 with: