Skip to content

Careful Integration #58

Careful Integration

Careful Integration #58

Workflow file for this run

name: Careful Integration
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
careful:
name: Careful Test
runs-on: ${{ matrix.job.os }}
strategy:
matrix:
rust: [nightly] # runs on nightly only
job:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
with:
toolchain: ${{ matrix.rust }}
- name: install cargo-careful
uses: taiki-e/install-action@a3df29458daa5c62abace1e6b358018bed57d5b4 # v2
with:
tool: cargo-careful
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
- name: Run Cargo Careful
run: cargo +${{ matrix.rust }} careful test
# TODO: don't run miri for now, due to addition of workspace
#1 crates and we'll need to figure out if we want to run miri
# miri:
# name: Miri Test
# runs-on: ${{ matrix.job.os }}
# strategy:
# fail-fast: false
# matrix:
# rust: [nightly] # runs on nightly only
# job:
# - os: macos-latest
# - os: ubuntu-latest
# - os: windows-latest
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# if: github.event_name != 'pull_request'
# with:
# fetch-depth: 0
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# if: github.event_name == 'pull_request'
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# - name: Install Rust toolchain
# uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
# with:
# toolchain: ${{ matrix.rust }}
# components: miri
# - uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2
# - name: Run Cargo Clean
# run: cargo +${{ matrix.rust }} clean # miri needs clean builds
# - name: Patch Cargo.toml
# shell: bash
# run: |
# # Account for sha256_compress not being interpreted by miri
# # https://github.com/rust-lang/miri/issues/3066
# sed -i -e 's/^sha2 = { version.*/sha2 = "0"/g' ./Cargo.toml
# - name: Run Cargo Miri Setup
# run: cargo +${{ matrix.rust }} miri setup # keep output clean
# - name: Run Cargo Miri
# env:
# MIRIFLAGS: -Zmiri-disable-isolation
# run: cargo +${{ matrix.rust }} miri test -- --nocapture
result:
name: Result (Careful CI)
runs-on: ubuntu-latest
needs:
- careful
# - miri # FIXME: don't run miri for now, due to addition of workspace
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"