From 6e7c33e5717fccc2b87b22cd590a113d6bc82b87 Mon Sep 17 00:00:00 2001 From: d3v-null Date: Mon, 23 Sep 2024 21:34:10 +0800 Subject: [PATCH] add from macos-ci --- .github/workflows/macos_ci.yml | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/macos_ci.yml diff --git a/.github/workflows/macos_ci.yml b/.github/workflows/macos_ci.yml new file mode 100644 index 0000000..bd2702e --- /dev/null +++ b/.github/workflows/macos_ci.yml @@ -0,0 +1,45 @@ +# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md + +on: + push: + tags-ignore: + - '**' + pull_request: + branches: + - '**' + + name: MacOS Tests + + jobs: + test: + strategy: + matrix: + os: + - "macos-latest" + - "macos-10.15" + name: MacOS Tests + continue-on-error: true + runs-on: "${{ matrix.os }}" + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt, clippy + + - name: Install Cargo Make + uses: davidB/rust-cargo-make@v1 + + - name: Install Dependencies + run: cargo make install_deps + + - run: cargo make test --no-default-features + - run: cargo make test +