Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @erubboli @ImplOfAnImpl @OBorce
97 changes: 97 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# name: Build and run tests

# on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - "**" # target all branches
# schedule:
# - cron: '15 0 * * *' # every day at 00:15 UTC

# env:
# CARGO_TERM_COLOR: always
# RUST_LOG: debug
# RUST_BACKTRACE: full
# ML_BRIDGE_PODMAN_TESTS: 1

# jobs:
# build_windows:
# runs-on: windows-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# submodules: recursive

# - name: Install python toml package
# run: python3 -m pip install toml

# - name: Install rust
# shell: bash
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)

# - name: Build
# run: cargo build --locked

# - name: Run tests
# run: cargo test --all

# - name: Run doc tests
# run: cargo test --doc

# build_ubuntu:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4
# with:
# submodules: recursive

# - name: Update local dependency repositories
# run: sudo apt-get update

# - name: Install build dependencies
# run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman pkg-config

# - name: Install rust
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)

# - name: Build
# run: cargo build --locked

# - name: Run tests
# run: cargo test --all

# - name: Run doc tests
# run: cargo test --doc

# build_macos:
# runs-on: macos-latest
# steps:
# - name: Checkout repository and submodules
# uses: actions/checkout@v4
# with:
# submodules: recursive

# - name: Install python toml package
# run: python3 -m pip install toml --break-system-packages --user

# - name: Install rust
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)

# - name: Build
# run: cargo build --locked

# - name: Run tests
# run: cargo test --all

# - name: Run doc tests
# run: cargo test --doc
58 changes: 58 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Static code checks

on:
push:
branches:
- master
pull_request:
branches:
- "**" # target all branches

env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
RUST_BACKTRACE: full
ML_BRIDGE_CORNUCOPIA_USE_DOCKER: 1

jobs:
# static_checks_ubuntu:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository and submodules
# uses: actions/checkout@v2
# with:
# submodules: recursive

# - name: Update local dependency repositories
# run: sudo apt-get update
# - name: Install dependencies
# run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml

# - name: Install rust
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version)
# - name: Install rust clippy
# run: rustup component add clippy
# - name: Install cargo-deny
# run: cargo install cargo-deny --locked
# - name: Install cornucopia
# run: cargo install cornucopia --locked
# - name: Run checks
# run: ./do_checks.sh

static_checks_macos:
runs-on: macos-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version-file: './build-tools/.python-version'

- name: Run checks
run: bash ./do_checks.sh
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/target

.vscode/

.DS_Store

# Python cache
**/__pycache__

# Python compiled files
*.pyc
Loading