Files
tuliprox/.github/workflows/ci.yaml
T
f16c3b24c1 fix: restore Windows builds for gnu/msvc targets (#806)
* fix: restore Windows builds for gnu/msvc targets

memmap2::Advice and Mmap::advise are Unix-only; add a portable Advice stub
on non-Unix. Fix GetDiskFreeSpaceExW output pointer types and wrap the
current-process pseudo-handle in a Send newtype so sys_usage can spawn on
tokio.

Co-authored-by: Cursor <cursoragent@cursor.com>

* windows support

* windows support

---------

Co-authored-by: MaxPain99 <maxpain99@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: euzu <euzu@proton.me>
Co-authored-by: euzu <33094714+euzu@users.noreply.github.com>
2026-07-30 18:47:16 +02:00

128 lines
2.9 KiB
YAML

name: CI
on:
# push:
# branches: []
pull_request:
branches: [develop]
# Avoid running the same CI multiple times for the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Job 1: Check markdown files
markdown:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v22
with:
globs: '**/*.md'
# Job 2: Check code style (very fast)
style:
name: Format & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Nightly Rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
with:
toolchain: nightly-2026-05-01
components: rustfmt, clippy
- name: Check Formatting
# This now works with cargo +nightly fmt
run: make fmt-check
- name: Lint with Clippy
run: make lint
docs:
name: Documentation Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install mdBook
uses: taiki-e/install-action@v2
with:
tool: mdbook
- name: Build documentation
run: make docs
frontend:
name: Frontend Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust Tools
uses: taiki-e/install-action@v2
with:
tool: trunk,wasm-bindgen-cli,mdbook
- name: Install Stable Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: "true"
- name: Install wasm tools 128
run: |
chmod +x ./bin/install_wasm_tools.sh
WASM_TOOLS_BIN="$(./bin/install_wasm_tools.sh 128)"
echo "${WASM_TOOLS_BIN}" >> "$GITHUB_PATH"
- name: Build frontend with wasm-opt
run: |
chmod +x ./bin/build_docs.sh ./bin/build_fe.sh
./bin/build_fe.sh release
windows:
name: Windows Build
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Install Stable Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check Windows build
run: cargo check --package tuliprox
# Job 3: Build and Test (takes longer)
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Stable Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
# This magic step saves compiled dependencies between runs
uses: Swatinem/rust-cache@v2
- name: Run Tests
run: make test