Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/check-ctest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Compliance

on:
pull_request:
paths:
- '**.rs'
- '.github/workflows/check-ctest.yml'
push:
branches:
- main

jobs:
compliance:
name: Check Compliance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
submodules: true
- name: Install Rust
run: "rustup toolchain install --profile minimal stable"
- name: Build
run: "cargo build -p ec4rs_tools"
- name: Core Tests
shell: bash
run: |
cd tests
cmake -DEDITORCONFIG_CMD="$PWD/../target/debug/ec4rs-parse" .
ctest .
50 changes: 50 additions & 0 deletions .github/workflows/check-glob.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check ec4rs_glob

on:
pull_request:
paths:
- 'glob/**.rs'
- 'glob/Cargo.toml'
- '.github/workflows/check-glob.yml'
push:
branches:
- main

jobs:
test:
name: MSRV Tests (glob)
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, windows]
include:
- build: linux
os: ubuntu-latest
- build: windows
os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install MSRV Rust
run: "rustup toolchain install --profile minimal 1.56"
- name: Build (glob)
run: "cargo build -p ec4rs_glob"
- name: Unit Tests (glob)
run: "cargo test -p ec4rs_glob"
quality:
name: Check Quality (glob)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Rust
run: |
rustup toolchain install --profile minimal
rustup component add clippy
rustup component add rustfmt
- name: Check Clippy
run: "cargo clippy -p ec4rs_glob"
- name: Check Docs
run: "cargo doc --no-deps -p ec4rs_glob"
- name: Check Style
run: "cargo fmt --check -p ec4rs_glob"
52 changes: 52 additions & 0 deletions .github/workflows/check-lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Check ec4rs

on:
pull_request:
paths:
- 'src/**.rs'
- 'Cargo.toml'
- '.github/workflows/check-lib.yml'
push:
branches:
- main

jobs:
test:
name: MSRV Tests (library)
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, windows]
include:
- build: linux
os: ubuntu-latest
- build: windows
os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install MSRV Rust
run: "rustup toolchain install --profile minimal 1.56"
- name: Build (library)
run: "cargo build -p ec4rs"
- name: Unit Tests (library)
run: "cargo test -p ec4rs"
- name: Unit Tests (library, all-features)
run: "cargo test -p ec4rs --all-features"
quality:
name: Code Quality (library)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Rust
run: |
rustup toolchain install --profile minimal
rustup component add clippy
rustup component add rustfmt
- name: Check Clippy
run: "cargo clippy -p ec4rs"
- name: Check Docs
run: "cargo doc --no-deps -p ec4rs"
- name: Check Style
run: "cargo fmt --check -p ec4rs"
92 changes: 0 additions & 92 deletions .github/workflows/ci.yml

This file was deleted.

Loading