2022-01-12 17:14:14 +03:00
|
|
|
name: termwiz
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-16 09:26:32 +03:00
|
|
|
paths:
|
|
|
|
- "termwiz/**"
|
|
|
|
- "bidi/**"
|
|
|
|
- "wezterm-dynamic/**"
|
|
|
|
- "color-types/**"
|
|
|
|
- "filedescriptor/**"
|
|
|
|
- "vtparse/**"
|
|
|
|
- ".github/workflows/termwiz.yml"
|
2022-01-12 17:16:16 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-16 09:26:32 +03:00
|
|
|
paths:
|
|
|
|
- "termwiz/**"
|
|
|
|
- "bidi/**"
|
|
|
|
- "wezterm-dynamic/**"
|
|
|
|
- "color-types/**"
|
|
|
|
- "filedescriptor/**"
|
|
|
|
- "vtparse/**"
|
|
|
|
- ".github/workflows/termwiz.yml"
|
2022-01-12 17:14:14 +03:00
|
|
|
|
|
|
|
jobs:
|
2022-01-12 17:19:44 +03:00
|
|
|
build-termwiz-all-features:
|
2022-01-12 17:14:14 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-11 04:34:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-01-12 17:14:14 +03:00
|
|
|
- name: "Install Rust"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-03-25 03:54:36 +03:00
|
|
|
- name: "Cache cargo"
|
|
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
with:
|
|
|
|
workspaces: |
|
|
|
|
termwiz
|
|
|
|
key: "termwiz-${{ runner.os }}"
|
2023-03-25 07:11:22 +03:00
|
|
|
- name: "Install cargo-nextest from Cargo"
|
|
|
|
uses: baptiste0928/cargo-install@v2
|
|
|
|
with:
|
|
|
|
crate: "cargo-nextest"
|
2022-01-12 17:14:14 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo build -p termwiz --all-features
|
2023-03-25 07:11:22 +03:00
|
|
|
cargo nextest run --no-fail-fast --package termwiz --all-features
|
2022-01-12 17:14:14 +03:00
|
|
|
|
2023-07-05 16:50:14 +03:00
|
|
|
# Disabled because cargo-fuzz doesn't build with nightly or stable rust right now
|
|
|
|
# fuzz-termwiz:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: Checkout
|
|
|
|
# uses: actions/checkout@v3
|
|
|
|
# - name: "Install Stable Rust"
|
|
|
|
# uses: dtolnay/rust-toolchain@stable
|
|
|
|
# - name: "Cache cargo"
|
|
|
|
# uses: Swatinem/rust-cache@v2
|
|
|
|
# with:
|
|
|
|
# workspaces: |
|
|
|
|
# termwiz
|
|
|
|
# key: "termwiz-fuzz-${{ runner.os }}"
|
|
|
|
# - name: "Install cargo-fuzz from Cargo"
|
|
|
|
# uses: baptiste0928/cargo-install@v2
|
|
|
|
# with:
|
|
|
|
# crate: "cargo-fuzz"
|
|
|
|
# - name: Fuzz
|
|
|
|
# run: |
|
|
|
|
# source $HOME/.cargo/env
|
|
|
|
# cd termwiz/fuzz
|
|
|
|
# RUST_BACKTRACE=full cargo fuzz run escape_parse -- -max_total_time=60
|
2022-05-14 18:27:52 +03:00
|
|
|
|