From 3fda0a966d6974c87bdce3f32b5c45442afd2e37 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Fri, 4 Oct 2024 14:37:18 +0400 Subject: [PATCH] Add CI job --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1000a9d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: build + +on: + push: + branches: + - "**" # target all branches + pull_request: + branches: + - "**" # target all branches + +env: + CARGO_TERM_COLOR: always + +jobs: + build_ubuntu: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + build_macos: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose