mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
closes #1803 This string is currently unsafe, but I want to get miri working before introducing more changes. I want to make a progress from memory leak to unsafe then to safety. It's harder to do the steps in one go.
42 lines
935 B
YAML
42 lines
935 B
YAML
name: Miri
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- 'crates/oxc_parser/**'
|
|
- '.github/workflows/miri.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'crates/oxc_parser/**'
|
|
- '.github/workflows/miri.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
miri:
|
|
name: Miri
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust
|
|
uses: ./.github/actions/rustup
|
|
with:
|
|
shared-key: miri
|
|
save-cache: ${{ github.ref_name == 'main' }}
|
|
|
|
- name: Install Miri
|
|
run: |
|
|
rustup toolchain install nightly --component miri
|
|
rustup override set nightly
|
|
cargo miri setup
|
|
|
|
- name: Test with Miri
|
|
run: cargo miri test -p oxc_parser
|