Skip to content

Commit

Permalink
fix(build): add beta rust to CI (#4637)
Browse files Browse the repository at this point in the history
* fix(build): add `beta` rust to CI

* fix(ci): remove macos-latest with beta Rust combination
  • Loading branch information
gustavovalverde authored Jun 22, 2022
1 parent 4f4c9c4 commit d2d4f5a
Showing 1 changed file with 8 additions and 42 deletions.
50 changes: 8 additions & 42 deletions .github/workflows/continous-integration-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ jobs:
matrix:
# TODO: Windows was removed for now, see https://github.com/ZcashFoundation/zebra/issues/3801
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:
- uses: actions/checkout@v3.0.2
Expand Down Expand Up @@ -146,47 +153,6 @@ jobs:
# 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_

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:
name: Build ${{ matrix.rust }} zebra-chain w/o features on ubuntu-latest
timeout-minutes: 60
Expand Down

0 comments on commit d2d4f5a

Please sign in to comment.