From fd69a2feb0c949cba190e4cf90d04acb5ccad655 Mon Sep 17 00:00:00 2001 From: Florian Richer Date: Sat, 24 Jul 2021 13:46:56 +0200 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..303bc08 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,28 @@ +name: Rust + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run tests + run: cargo test --verbose + build: + runs-on: ubuntu-latest + steps: + - name: Build linux + run: cargo build --release + - name: Build + uses: actions/upload-artifact@v2.2.4 + with: + name: "$GITHUB_HEAD_REF-linux" + path: target/release/autoconfig