From 34a0f970990ed4f43fb4a26d8b33f3a35322533747fcf2a2c5d5c4b529ca5c3f Mon Sep 17 00:00:00 2001 From: Apache Date: Mon, 15 Jul 2024 01:35:27 -0500 Subject: [PATCH] Naive attempt to adapt rust github workflow --- .forgejo/workflows/demo.yaml | 6 ------ .forgejo/workflows/rust.yaml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) delete mode 100644 .forgejo/workflows/demo.yaml create mode 100644 .forgejo/workflows/rust.yaml diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml deleted file mode 100644 index 987d51f..0000000 --- a/.forgejo/workflows/demo.yaml +++ /dev/null @@ -1,6 +0,0 @@ -on: [push] -jobs: - test: - runs-on: docker - steps: - - run: echo All Good diff --git a/.forgejo/workflows/rust.yaml b/.forgejo/workflows/rust.yaml new file mode 100644 index 0000000..ea4e4aa --- /dev/null +++ b/.forgejo/workflows/rust.yaml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: docker + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose +