From aca0ca094612fd20b22f543a15cfb62aa1f1630c Mon Sep 17 00:00:00 2001 From: Dylan Knutson Date: Thu, 13 Jun 2024 10:25:23 -0700 Subject: [PATCH] add demo workflow --- .gitea/workflows/build-and-test.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/build-and-test.yaml diff --git a/.gitea/workflows/build-and-test.yaml b/.gitea/workflows/build-and-test.yaml new file mode 100644 index 0000000..5ad7f4a --- /dev/null +++ b/.gitea/workflows/build-and-test.yaml @@ -0,0 +1,23 @@ +name: Build & Test +run-name: Build & Test +on: [push] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Cache cargo build artifacts + uses: actions/cache@v3 + with: + path: | + **/target + - name: Install rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Build + run: cargo build + - name: Test + run: cargo test