gila/.gitea/workflows/ci.yaml
shibedrill b6f9889c15
All checks were successful
Continuous Integration / Check (push) Successful in 2m26s
Continuous Integration / Rustfmt (push) Successful in 1m37s
Continuous Integration / Clippy (push) Successful in 2m5s
Continuous Integration / Build (x86_64) (push) Successful in 2m27s
CI: Fix missing target download
2025-07-23 01:45:03 -04:00

52 lines
1.3 KiB
YAML

name: Continuous Integration
on: [push]
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup target add x86_64-unknown-none
- run: cargo check
# Disabled until custom test harness is implemented.
#test:
# name: Test Suite
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rust-lang/setup-rust-toolchain@v1
# - run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup component add rustfmt
- run: rustup target add x86_64-unknown-none
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup component add clippy
- run: rustup target add x86_64-unknown-none
- run: cargo clippy -- -D warnings
build:
name: Build (x86_64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup target add x86_64-unknown-none
- run: cargo build --bin kernel --target x86_64-unknown-none