From efc1f97f805906fc62b5dc3a6041e1ed480772da Mon Sep 17 00:00:00 2001 From: Jackz Date: Wed, 16 Apr 2025 20:17:45 -0500 Subject: [PATCH 1/3] Create rust.yml --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..9fd45e0 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 092e64b05cab31c4486cfea0ba673452cfa57492 Mon Sep 17 00:00:00 2001 From: Jackz Date: Wed, 16 Apr 2025 20:22:44 -0500 Subject: [PATCH 2/3] Update rust.yml --- .github/workflows/rust.yml | 39 ++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..3574d05 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,22 +1,33 @@ -name: Rust - +name: "Rust" on: push: - branches: [ "main" ] pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always jobs: build: - + name: cargo build runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo build --all-features + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo test --all-features + + # Check formatting with rustfmt + formatting: + name: cargo fmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Ensure rustfmt is installed and setup problem matcher + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt + - name: Rustfmt Check + uses: actions-rust-lang/rustfmt@v1 From ee5df639fa1df511e0f2f2c413485b0274c86dd4 Mon Sep 17 00:00:00 2001 From: Jackz Date: Wed, 16 Apr 2025 20:29:58 -0500 Subject: [PATCH 3/3] Delete .github/workflows/rust.yml --- .github/workflows/rust.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 3574d05..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: "Rust" -on: - push: - pull_request: - -jobs: - build: - name: cargo build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/setup-rust-toolchain@v1 - - run: cargo build --all-features - test: - name: cargo test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/setup-rust-toolchain@v1 - - run: cargo test --all-features - - # Check formatting with rustfmt - formatting: - name: cargo fmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - # Ensure rustfmt is installed and setup problem matcher - - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - components: rustfmt - - name: Rustfmt Check - uses: actions-rust-lang/rustfmt@v1