From fbaa3c94bb78e1e9977b7a95088d6585215fe8a3 Mon Sep 17 00:00:00 2001 From: "wudi.daniel" Date: Fri, 22 Oct 2021 08:58:20 +0800 Subject: [PATCH] ci: set up github action workflow for rust --- .github/workflows/cargo-test-linux.yml | 22 ++++++++++++++++++++++ .github/workflows/cargo-test-macos.yml | 22 ++++++++++++++++++++++ .github/workflows/cargo-test-windows.yml | 22 ++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 .github/workflows/cargo-test-linux.yml create mode 100644 .github/workflows/cargo-test-macos.yml create mode 100644 .github/workflows/cargo-test-windows.yml diff --git a/.github/workflows/cargo-test-linux.yml b/.github/workflows/cargo-test-linux.yml new file mode 100644 index 0000000..0a0eb80 --- /dev/null +++ b/.github/workflows/cargo-test-linux.yml @@ -0,0 +1,22 @@ +name: Cargo Test Linux + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Make clippy happy + run: cargo clippy + - name: Run tests + run: cargo test --verbose diff --git a/.github/workflows/cargo-test-macos.yml b/.github/workflows/cargo-test-macos.yml new file mode 100644 index 0000000..191209c --- /dev/null +++ b/.github/workflows/cargo-test-macos.yml @@ -0,0 +1,22 @@ +name: Cargo Test macOS + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Make clippy happy + run: cargo clippy + - name: Run tests + run: cargo test --verbose diff --git a/.github/workflows/cargo-test-windows.yml b/.github/workflows/cargo-test-windows.yml new file mode 100644 index 0000000..815b15f --- /dev/null +++ b/.github/workflows/cargo-test-windows.yml @@ -0,0 +1,22 @@ +name: Cargo Test Windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Make clippy happy + run: cargo clippy + - name: Run tests + run: cargo test --verbose