Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
feat: add CI, benchmark, and release GitHub Actions workflows
FABIOTESScd26432aef7f
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.ymlnew file mode 100644index 00000000..761c9652--- /dev/null+++ b/.github/workflows/benchmark.yml@@ -0,0 +1,30 @@+name: Benchmark+on:+ workflow_dispatch:++jobs:+ benchmark:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: dtolnay/rust-toolchain@stable+ - uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'+ - uses: actions/setup-python@v5+ with:+ python-version: '3.12'+ - name: Install Python deps+ run: pip install matplotlib+ - name: Build Open Ontologies+ run: cargo build --release+ - name: Run LUBM performance+ run: |+ export OO_BIN=./target/release/open-ontologies+ cd benchmark/reasoner && bash run_lubm_performance.sh+ - name: Upload results+ uses: actions/upload-artifact@v4+ with:+ name: benchmark-results+ path: benchmark/reasoner/results/diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..ffd0a71b--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,25 @@+name: CI+on:+ push:+ branches: [main]+ pull_request:+ branches: [main]++jobs:+ build:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: dtolnay/rust-toolchain@stable+ with:+ components: clippy+ - name: Build+ run: cargo build --all-targets+ - name: Test+ run: cargo test+ - name: Clippy+ run: cargo clippy -- -D warnings+ - name: Audit+ run: |+ cargo install cargo-audit+ cargo auditdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..459adad2--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,41 @@+name: Release+on:+ push:+ tags: ['v*']++jobs:+ build:+ strategy:+ matrix:+ include:+ - os: ubuntu-latest+ target: x86_64-unknown-linux-gnu+ - os: macos-latest+ target: aarch64-apple-darwin+ - os: macos-13+ target: x86_64-apple-darwin+ runs-on: ${{ matrix.os }}+ steps:+ - uses: actions/checkout@v4+ - uses: dtolnay/rust-toolchain@stable+ with:+ targets: ${{ matrix.target }}+ - name: Build+ run: cargo build --release --target ${{ matrix.target }}+ - name: Upload binary+ uses: actions/upload-artifact@v4+ with:+ name: open-ontologies-${{ matrix.target }}+ path: target/${{ matrix.target }}/release/open-ontologies++ release:+ needs: build+ runs-on: ubuntu-latest+ permissions:+ contents: write+ steps:+ - uses: actions/download-artifact@v4+ - name: Create release+ uses: softprops/action-gh-release@v2+ with:+ files: open-ontologies-*/open-ontologies