fix(build): add `beta` rust to CI (#4637)
* fix(build): add `beta` rust to CI * fix(ci): remove macos-latest with beta Rust combination
This commit is contained in:
parent
4f4c9c42c9
commit
d2d4f5a67e
|
@ -53,7 +53,14 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
rust: [stable]
|
rust: [stable, beta]
|
||||||
|
# We're excluding macOS for the following reasons:
|
||||||
|
# - the concurrent macOS runner limit is much lower than the Linux limit
|
||||||
|
# - macOS is slower than Linux, and shouldn't have a build or test difference with Linux
|
||||||
|
# - macOS is a second-tier Zebra support platform
|
||||||
|
exclude:
|
||||||
|
- os: macos-latest
|
||||||
|
rust: beta
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.0.2
|
- uses: actions/checkout@v3.0.2
|
||||||
|
@ -146,47 +153,6 @@ jobs:
|
||||||
# Note: this only runs the zebrad acceptance tests, because re-running all the test binaries is slow on Windows
|
# Note: this only runs the zebrad acceptance tests, because re-running all the test binaries is slow on Windows
|
||||||
args: --verbose --package zebrad --test acceptance -- --nocapture --include-ignored sync_large_checkpoints_
|
args: --verbose --package zebrad --test acceptance -- --nocapture --include-ignored sync_large_checkpoints_
|
||||||
|
|
||||||
test-fake-activation-heights:
|
|
||||||
name: Test ${{ matrix.rust }} zebra-state with fake activation heights on ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
rust: [stable]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.0.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: ${{ matrix.rust }}
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
|
||||||
|
|
||||||
- name: cargo fetch
|
|
||||||
uses: actions-rs/cargo@v1.0.3
|
|
||||||
with:
|
|
||||||
command: fetch
|
|
||||||
|
|
||||||
# This test changes zebra-chain's activation heights,
|
|
||||||
# which can recompile all the Zebra crates,
|
|
||||||
# so we want its build products to be cached separately.
|
|
||||||
#
|
|
||||||
# Also, we don't want to accidentally use the fake heights in other tests.
|
|
||||||
- name: Run tests with fake activation heights
|
|
||||||
uses: actions-rs/cargo@v1.0.3
|
|
||||||
env:
|
|
||||||
TEST_FAKE_ACTIVATION_HEIGHTS: ''
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
# Note: this only runs the zebra-state crate tests,
|
|
||||||
# because re-running all the test binaries can be slow
|
|
||||||
args: --verbose --package zebra-state --lib -- --nocapture --include-ignored with_fake_activation_heights
|
|
||||||
|
|
||||||
build-chain-no-features:
|
build-chain-no-features:
|
||||||
name: Build ${{ matrix.rust }} zebra-chain w/o features on ubuntu-latest
|
name: Build ${{ matrix.rust }} zebra-chain w/o features on ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
Loading…
Reference in New Issue