From d319be6ba1558afbcdc48f994c69d0c0bbaf11e7 Mon Sep 17 00:00:00 2001 From: Evan Hedbor Date: Wed, 26 Jun 2024 19:22:09 +0200 Subject: [PATCH 1/3] Create build.yml --- .github/workflows/build.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 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..bdcb386 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,68 @@ +name: Build +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: "-Dwarnings" + +jobs: + test: + name: Tests (${{matrix.os}}) + runs-on: ${{matrix.os} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + steps: + - name: Run tests + run: cargo test + - name: Run tests (preserve-order) + run: cargo test --features preserve-order + + build: + name: Build (${{matrix.os}}) + runs-on: ${{matrix.os}} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + steps: + - uses: actions/checkout@v4 + - name: Check + run: cargo check + - name: Check (preserve-order) + run: cargo check --features preserve-order + - name: Check (no-std) + run: cargo check --no-default-features + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Clippy + run: cargo clippy --all-targets + + format: + name: Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run rustfmt + run: cargo fmt -- --check + + docs: + name: Check documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run cargo doc + run: cargo doc --no-deps --workspace From 3b307628b2765a009a6cbdb4205d770de3b8da81 Mon Sep 17 00:00:00 2001 From: Evan Hedbor Date: Wed, 26 Jun 2024 19:22:50 +0200 Subject: [PATCH 2/3] Fix build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdcb386..0ccb8aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ env: jobs: test: name: Tests (${{matrix.os}}) - runs-on: ${{matrix.os} + runs-on: ${{matrix.os}} strategy: matrix: os: From 8a4d46ce2d8fd782cc8e5c8c50b3c723ad757043 Mon Sep 17 00:00:00 2001 From: Evan Hedbor Date: Wed, 26 Jun 2024 19:51:56 +0200 Subject: [PATCH 3/3] Fix typo in build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ccb8aa..1c99d1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Run tests run: cargo test - name: Run tests (preserve-order) - run: cargo test --features preserve-order + run: cargo test --features preserve_order build: name: Build (${{matrix.os}}) @@ -39,7 +39,7 @@ jobs: - name: Check run: cargo check - name: Check (preserve-order) - run: cargo check --features preserve-order + run: cargo check --features preserve_order - name: Check (no-std) run: cargo check --no-default-features