Skip to content

docs: strip --jobs N from READMEs; keep --workspace #16

docs: strip --jobs N from READMEs; keep --workspace

docs: strip --jobs N from READMEs; keep --workspace #16

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
CARGO_TARGET_DIR: target
jobs:
rust:
name: Rust lint and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: pd-edge
- uses: actions/checkout@v4
with:
repository: rustscript-lang/rustscript
path: rustscript
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format check
working-directory: pd-edge
run: cargo fmt --all -- --check
- name: Clippy
working-directory: pd-edge
run: cargo clippy --workspace --all-targets --all-features
- name: Tests
working-directory: pd-edge
run: cargo test --workspace --jobs 4
binaries:
name: pd-edge binaries (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: pd-edge
- uses: actions/checkout@v4
with:
repository: rustscript-lang/rustscript
path: rustscript
- uses: dtolnay/rust-toolchain@stable
- name: Build pd-edge binaries
working-directory: pd-edge
run: cargo build -p pd-edge --bins --release
- name: Stage pd-edge artifacts
shell: bash
working-directory: pd-edge
run: |
mkdir -p dist
suffix=""
if [[ "${{ runner.os }}" == "Windows" ]]; then suffix=".exe"; fi
for bin in pd-edge-http-proxy pd-edge-transport-proxy pd-edge-console pd-edge-sample-echo-server; do
cp "target/release/${bin}${suffix}" "dist/${bin}-${{ runner.os }}-${{ runner.arch }}${suffix}"
done
- uses: actions/upload-artifact@v4
with:
name: pd-edge-binaries-${{ runner.os }}-${{ runner.arch }}
path: pd-edge/dist/*
- name: Upload pd-edge release assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: pd-edge/dist/*