From 27d15286bdf1124ef842d7d038a9cfc6115cccc5 Mon Sep 17 00:00:00 2001 From: apache Date: Sun, 27 Oct 2024 22:21:33 -0500 Subject: [PATCH] add rust workflow --- .forgejo/workflows/rust.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .forgejo/workflows/rust.yaml diff --git a/.forgejo/workflows/rust.yaml b/.forgejo/workflows/rust.yaml new file mode 100644 index 0000000..a054e87 --- /dev/null +++ b/.forgejo/workflows/rust.yaml @@ -0,0 +1,24 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - name: Setup + run: DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install cargo + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose