From 1c0830ee5a27e86f3f2b271c8fb5a84e1f24dc23 Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Sun, 8 Sep 2024 17:19:12 +0300 Subject: [PATCH 1/3] Create ci.yaml --- .github/workspaces/ci.yaml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workspaces/ci.yaml diff --git a/.github/workspaces/ci.yaml b/.github/workspaces/ci.yaml new file mode 100644 index 0000000..2c84e48 --- /dev/null +++ b/.github/workspaces/ci.yaml @@ -0,0 +1,44 @@ +name: ci +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + CARGO_TERM_COLOR: always + CARGO_INCREMENTAL: 0 # TODO: remove this when we cache the builds + RUSTFLAGS: "-Dwarnings" + +jobs: + ci: + runs-on: ${{ matrix.runner }} + strategy: + matrix: + runner: [ubuntu-latest, macos-latest, windows-latest] + fail-fast: false + steps: + - uses: actions/checkout@v4 + + - name: Setup Rust + run: rustup update + + - name: build + run: cargo build --all --release + + - name: check + run: cargo check --all --release + + - name: clippy + run: cargo check --all-targets --release + + - name: doc + run: cargo doc --workspace --all-features --no-deps + + - name: test + run: cargo test --release --all-targets + shell: bash + From 5c397936839448c7b8a1cde889848464d766bdc5 Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Sun, 8 Sep 2024 17:25:16 +0300 Subject: [PATCH 2/3] Update .github/workspaces/ci.yaml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workspaces/ci.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workspaces/ci.yaml b/.github/workspaces/ci.yaml index 2c84e48..3dd422f 100644 --- a/.github/workspaces/ci.yaml +++ b/.github/workspaces/ci.yaml @@ -33,7 +33,7 @@ jobs: run: cargo check --all --release - name: clippy - run: cargo check --all-targets --release + run: cargo clippy --all-targets --release - name: doc run: cargo doc --workspace --all-features --no-deps @@ -41,4 +41,3 @@ jobs: - name: test run: cargo test --release --all-targets shell: bash - From aa1862789e83360a21a856f261f94f3ac64e899d Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Sun, 8 Sep 2024 17:29:42 +0300 Subject: [PATCH 3/3] Rename ci.yaml to ci.yaml --- .github/{workspaces => workflows}/ci.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workspaces => workflows}/ci.yaml (100%) diff --git a/.github/workspaces/ci.yaml b/.github/workflows/ci.yaml similarity index 100% rename from .github/workspaces/ci.yaml rename to .github/workflows/ci.yaml