Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/README.md

This file was deleted.

123 changes: 25 additions & 98 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,116 +9,43 @@ on: # yamllint disable-line rule:truthy
name: Continuous integration

jobs:
Stable: # 2 jobs, one per lock file.
name: Test - stable toolchain
runs-on: ubuntu-latest
Stable:
name: Test - ${{ matrix.toolchain }} toolchain, ${{ matrix.dep }} deps
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
toolchain: [stable, msrv]
dep: [minimal, recent]
steps:
- name: "Checkout repo"
uses: actions/checkout@v6
- uses: ./.github/actions/prepare
with:
toolchain: stable
- name: "Run tests"
run: cargo rbmt test stable --lock-file ${{ matrix.dep }}

Nightly: # 2 jobs, one per lock file.
name: Test - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dep: [minimal, recent]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/prepare
with:
toolchain: nightly
- name: "Run tests"
run: cargo rbmt test nightly --lock-file ${{ matrix.dep }}

MSRV: # 2 jobs, one per lock file.
name: Test - 1.63.0 toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dep: [minimal, recent]
steps:
- uses: actions/checkout@v6
- name: "Free disk space"
uses: endersonmenezes/free-disk-space@v3
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
- uses: ./.github/actions/prepare
# Cleaning up github bloat so that test feature artifacts don't run out of disk.
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
toolchain: "1.63.0"
persist-credentials: false
- uses: ./.github/actions/setup-rbmt
- name: "Run tests"
run: cargo rbmt test msrv --lock-file ${{ matrix.dep }}
run: cargo rbmt test --toolchain ${{ matrix.toolchain }} --lock-file ${{ matrix.dep }}

Lint:
name: Lint - nightly toolchain
runs-on: ubuntu-latest
Check:
runs-on: ubuntu-26.04
permissions:
contents: read
strategy:
fail-fast: false
matrix:
dep: [recent]
task: [lint, docs, docsrs, bench]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/prepare
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
toolchain: nightly
components: clippy
- name: "Run lint"
run: cargo rbmt lint

Docs:
name: Docs - stable toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/prepare
with:
toolchain: stable
- name: "Build docs"
run: cargo rbmt docs

Docsrs:
name: Docs - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/prepare
with:
toolchain: nightly
- name: "Build docs.rs docs"
run: cargo rbmt docsrs

Bench:
name: Bench - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/prepare
with:
toolchain: nightly
- name: "Run bench"
run: cargo rbmt bench
persist-credentials: false
- uses: ./.github/actions/setup-rbmt
- name: "Run ${{ matrix.task }}"
run: cargo rbmt ${{ matrix.task }}

Format: # 1 job, run cargo fmt directly.
Format:
name: Format - nightly toolchain
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
steps:
Expand All @@ -130,9 +57,9 @@ jobs:
- name: "Check formatting"
run: cargo fmt --all -- --check

Integration: # 1 job for each bitcoind version we support.
Integration:
name: Integration tests - stable toolchain
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -162,7 +89,7 @@ jobs:
run: cargo rbmt integration

Embedded:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
Loading