Reactivate the build step

This was, the test step is performed after a successful build and doesn't trigger a build on its own.
This commit is contained in:
Nehu 2022-11-11 11:48:10 +01:00
parent 0391fd1bf4
commit 37d99a70c2
No known key found for this signature in database
GPG key ID: 78EB319889EB5FBF

View file

@ -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: