Remove poc.c and clean up build for production #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubicloud-standard-4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential pkg-config clang-format \ | |
| meson ninja-build python3-pip jq bc docutils | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust (registry, git deps, target/) | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Clone and build libblkio | |
| run: | | |
| git clone https://gitlab.com/libblkio/libblkio.git | |
| cd libblkio | |
| meson setup build --prefix=/usr/local | |
| meson compile -C build | |
| sudo --preserve-env=PATH,RUSTUP_HOME,CARGO_HOME,HOME meson install -C build | |
| sudo ldconfig | |
| - name: Build | |
| run: make | |
| - name: Lint | |
| run: make lint | |
| - name: Unit tests | |
| run: make test-unit | |
| - name: CLI tests | |
| run: make test-cli | |
| - name: Integration smoke test | |
| run: make test-smoke |