mirror of
https://github.com/wez/wezterm.git
synced 2024-12-18 19:01:36 +03:00
79 lines
1.9 KiB
YAML
79 lines
1.9 KiB
YAML
name: termwiz
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "termwiz/**"
|
|
- "bidi/**"
|
|
- "wezterm-dynamic/**"
|
|
- "color-types/**"
|
|
- "filedescriptor/**"
|
|
- "vtparse/**"
|
|
- ".github/workflows/termwiz.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "termwiz/**"
|
|
- "bidi/**"
|
|
- "wezterm-dynamic/**"
|
|
- "color-types/**"
|
|
- "filedescriptor/**"
|
|
- "vtparse/**"
|
|
- ".github/workflows/termwiz.yml"
|
|
|
|
jobs:
|
|
build-termwiz-all-features:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: "Install Rust"
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: "minimal"
|
|
toolchain: "stable"
|
|
override: true
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
|
- name: Build
|
|
run: |
|
|
source $HOME/.cargo/env
|
|
cargo build -p termwiz --all-features
|
|
cargo test -p termwiz --all-features
|
|
|
|
fuzz-termwiz:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: "Install Rust"
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: "minimal"
|
|
toolchain: "nightly"
|
|
override: true
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
|
- name: "Cache cargo"
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: "ubuntu-latest-termwiz-fuzz-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
|
- name: Install fuzzer
|
|
run: |
|
|
source $HOME/.cargo/env
|
|
cargo install cargo-fuzz
|
|
cd termwiz/fuzz
|
|
- name: Fuzz
|
|
run: |
|
|
source $HOME/.cargo/env
|
|
cd termwiz/fuzz
|
|
RUST_BACKTRACE=full cargo +nightly fuzz run escape_parse -- -max_total_time=60
|
|
|