From 0fd85820a362a1a8f0987a7631461ad4cc6283c0 Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Wed, 2 Oct 2024 21:05:16 +0200 Subject: [PATCH] build workflow --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b56969f8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - master + paths-ignore: + - "**.md" + - "!.github/workflows/*.yml" + + pull_request: + paths-ignore: + - "**.md" + - "!.github/workflows/*.yml" + +name: Tests + +jobs: + build: + strategy: + matrix: + platform: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + + name: build - ${{ matrix.platform }} + steps: + - uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: Swatinem/rust-cache@v2 + - run: cargo build