From 44ec897acebf969a9db87cb0cdab32acb10c1320 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Fri, 26 Jul 2024 16:40:10 +0200 Subject: [PATCH] set up github actions --- .github/workflows/rust.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..25c5214 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,32 @@ +name: Rust + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo + target/ + key: ${{ runner.os }}-${{ hashFiles('Cargo.toml') }} + restore-keys: | + ${{ runner.os }}-${{ hashFiles('Cargo.toml') }} + ${{ runner.os }}- + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose