From b57bf183b1860cfce2f443f7b158afbc4dbd032b Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:06:35 +0300 Subject: [PATCH] Add Rust workflow --- .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..cc23f8f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,32 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ windows-latest, macos-latest, ubuntu-latest ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Debug Build + run: cargo build --verbose --manifest-path rsbddisasm/Cargo.toml + - name: Release build + run: cargo build --release --verbose --manifest-path rsbddisasm/Cargo.toml + - name: Run tests + run: cargo test --verbose --manifest-path rsbddisasm/Cargo.toml + - name: Run clippy + run: cargo clippy --manifest-path rsbddisasm/Cargo.toml + - name: Run format checks + run: cargo fmt -- --check --manifest-path rsbddisasm/Cargo.toml