Skip to content

Commit e3b23c3

Browse files
committed
ci: add beta workflow
Signed-off-by: Benno Lossin <[email protected]>
1 parent ce58542 commit e3b23c3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,40 @@ jobs:
139139
git rebase --exec "bash exec.sh" --root
140140
env:
141141
RUSTFLAGS: "-Dwarnings"
142+
beta:
143+
runs-on: ubuntu-latest
144+
strategy:
145+
matrix:
146+
kind:
147+
- "check --all-targets"
148+
- "test --all-targets"
149+
# doctests are strangely not included in --all-targets
150+
- "--features default test --doc"
151+
name: "beta/${{matrix.kind}}"
152+
steps:
153+
- uses: actions/checkout@v4
154+
with:
155+
fetch-depth: ${{github.event.pull_request.commits}}
156+
ref: ${{github.event.pull_request.head.sha}}
157+
- uses: dtolnay/rust-toolchain@beta
158+
with:
159+
components: rust-src
160+
- run: cargo install cargo-expand
161+
- run: cargo install cargo-hack
162+
- run: git config user.name "github-runner" && git config user.email "<>"
163+
- run: |
164+
echo '#!/bin/bash
165+
set -e
166+
cargo hack \
167+
--clean-per-run \
168+
--feature-powerset \
169+
${{matrix.kind}} \
170+
--locked
171+
cargo clean' > exec.sh
172+
git rebase --exec "bash exec.sh" --root
173+
env:
174+
RUSTFLAGS: "-Dwarnings"
175+
RUSTC_BOOTSTRAP: 1
142176
miri:
143177
runs-on: ubuntu-latest
144178
name: "miri (${{matrix.MIRIFLAGS}})"

0 commit comments

Comments
 (0)