ops.c: include device.h for struct DEV definition (statfs) #20
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: build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| debian: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:stable | |
| steps: | |
| - name: Install build dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends \ | |
| build-essential pkg-config libfuse3-dev fuse3 git ca-certificates | |
| - uses: actions/checkout@v5 | |
| - name: Show toolchain | |
| run: | | |
| cat /etc/debian_version | |
| cc --version | |
| pkg-config --modversion fuse3 | |
| uname -a | |
| - name: Build library | |
| run: make lib | |
| - name: Build helper objects (FUSE-independent) | |
| run: make objs | |
| - name: Build full binary | |
| run: make bin | |
| - name: Smoke - help | |
| run: ./fuse-ods2 -h || true | |
| - name: Upload binary | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: fuse-ods2-debian | |
| path: fuse-ods2 | |
| if-no-files-found: error | |
| e2e: | |
| needs: debian | |
| runs-on: ubuntu-latest | |
| # Privileged container is needed so /dev/fuse is usable inside. | |
| container: | |
| image: debian:stable | |
| options: >- | |
| --device /dev/fuse | |
| --cap-add SYS_ADMIN | |
| --security-opt apparmor:unconfined | |
| steps: | |
| - name: Install runtime + build dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends \ | |
| build-essential pkg-config libfuse3-dev fuse3 \ | |
| git ca-certificates perl | |
| - uses: actions/checkout@v5 | |
| - name: Build fuse-ods2 | |
| run: make bin | |
| - name: Generate ODS-2 test image | |
| run: ./test/make_image.sh | |
| - name: Run smoke test | |
| run: ./test/smoke.sh | |
| - name: Show debug output on failure | |
| if: failure() | |
| run: | | |
| ls -la test/_out || true | |
| ./fuse-ods2 -h || true | |
| dmesg | tail -50 || true |