From 02c01b939a4b3223ef37ecabb0e33a75444bcf51 Mon Sep 17 00:00:00 2001 From: picoHz <53327867+picoHz@users.noreply.github.com> Date: Sun, 2 Jul 2023 01:09:34 +0900 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..279b58c6 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,29 @@ +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 + - uses: actions/cache@v2 + with: + path: | + ~/.rustup/toolchains/stable-* + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-stable-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build + run: cargo build --all-features + - name: Run tests + run: cargo test --all-features