From fce1fd47c398b8d8df7c26abb303621a86f90a76 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 20 May 2024 16:56:27 +0000 Subject: [PATCH 1/3] Add a github action to test bitvec --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..10269dc6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: All Tests + +on: + pull_request: + push: + branches: + - master + +jobs: + test: + name: Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ubuntu-latest + rust: + - stable + - beta + - nightly + - "1.63" + steps: + - uses: actions/checkout@v1 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + - run: cargo test + + docs: + name: docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy + + - name: Check documentation + env: + RUSTDOCFLAGS: -D warnings + run: cargo doc --no-deps --document-private-items --workspace From b7e958332393e3aef3c76ce3242ce449a978ba7b Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 20 May 2024 16:59:55 +0000 Subject: [PATCH 2/3] Run miri in CI --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10269dc6..4b232682 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,18 @@ jobs: toolchain: ${{ matrix.rust }} - run: cargo test + miri: + name: Test Miri + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightlyg + components: miri + - run: cargo miri setup + - run: cargo miri test + docs: name: docs runs-on: ubuntu-latest From 06bac6522c1c7ce8bc911da0d700d1af0a957aed Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 23 May 2024 06:18:25 -0700 Subject: [PATCH 3/3] Update .github/workflows/ci.yml Co-authored-by: wcampbell --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b232682..e4d76fa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@master with: - toolchain: nightlyg + toolchain: nightly components: miri - run: cargo miri setup - run: cargo miri test