Create run-xfstest.yml #3
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 and Run xfstest | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-and-run-xfstest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout myself | |
| uses: actions/checkout@v4 | |
| with: | |
| path: fuse-kernel-modules | |
| - name: checkout xfstest | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: kdave/xfstests | |
| path: xfstest | |
| - name: checkout libfuse | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: libfuse/libfuse | |
| path: xfstest | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install acl attr automake bc dbench dump e2fsprogs fio gawk \ | |
| gcc git indent libacl1-dev libaio-dev libcap-dev libgdbm-dev libtool \ | |
| libtool-bin liburing-dev libuuid1 lvm2 make psmisc python3 quota sed \ | |
| uuid-dev uuid-runtime xfsprogs linux-headers-$(uname -r) sqlite3 \ | |
| libgdbm-compat-dev | |
| sudo apt install meson gcc-c++ libfuse | |
| - name: Build xfstest | |
| run: | | |
| pushd xfstest | |
| make | |
| popd | |
| - name: Build kernel modules | |
| run: | | |
| pushd fuse-kernel-modules/src | |
| ./build | |
| popd | |
| - name: Build libfuse | |
| run: | | |
| mkdir build | |
| pushd build | |
| meson ../libfuse | |
| ninja |