From bc0f9e6a08827ecee4ec9ca362c4f68c13d3dd1d Mon Sep 17 00:00:00 2001 From: ARessegetes Stery <46016708+ARessegetesStery@users.noreply.github.com> Date: Wed, 9 Apr 2025 19:14:15 -0400 Subject: [PATCH 1/2] infra: setup github CI --- .github/workflows/build.yml | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 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..58dced2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,56 @@ +name: Build (Linux) + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" + + - name: Run cargo check + run: cargo check + + + lints: + name: Lints + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" + + - name: Run cargo fmt + run: cargo fmt --all --check + + - name: Run cargo clippy + run: cargo clippy --workspace --all-targets -- -D warnings + + - name: Run cargo doc + run: cargo doc --no-deps --workspace --document-private-items + env: + RUSTDOCFLAGS: -D warnings From 79f7434a453382bee033851357702ca58a467370 Mon Sep 17 00:00:00 2001 From: ARessegetes Stery <46016708+ARessegetesStery@users.noreply.github.com> Date: Wed, 9 Apr 2025 19:17:06 -0400 Subject: [PATCH 2/2] infra: include workflow trigger test branch --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58dced2..def5e39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,9 @@ name: Build (Linux) on: push: - branches: [ "main" ] + branches: + - "main" + - "github-ci-test" pull_request: branches: [ "main" ]