From eec7613e61cc9b1e14067db6de466a179920cd94 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 22 Mar 2023 14:44:41 +0100 Subject: [PATCH] btrfs-progs: ci: build workflow Github actions for devel Add basic build tests and runtime tests devel, triggered by branch push. For workflow testing there's a stub triggered by push of devel-ci. Signed-off-by: David Sterba --- .github/workflows/devel.yml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 61 insertions(+) create mode 100644 .github/workflows/devel.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml new file mode 100644 index 00000000..4fde3251 --- /dev/null +++ b/.github/workflows/devel.yml @@ -0,0 +1,34 @@ +# Workflow for testing branch 'devel' +# - build tests +# - various runtime tests + +name: Devel build and tests +run-name: Devel tests +on: + push: + branches: + - devel +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: uname -a + - run: sudo modprobe btrfs + - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev + - name: Configure + run: ./autogen.sh && ./configure + - name: Make + run: make V=1 + - name: Musl build + run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev + - name: Tests cli + run: sudo make TEST_LOG=dump test-cli + - name: Tests mkfs + run: sudo make TEST_LOG=dump test-mkfs + - name: Tests check + run: sudo make TEST_LOG=dump test-check + - name: Tests check (lowmem) + run: sudo make TEST_LOG=dump test-check-lowmem + - name: Tests misc + run: sudo make TEST_LOG=dump test-misc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e4777107 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +# Testing workflow for CI developments, reacts to push of branch 'devel-ci' +name: Testing CI build +run-name: Testing CI +on: + push: + branches: + - devel-ci +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: uname -a + - run: sudo modprobe btrfs + - run: cat /proc/filesystems + - run: gcc --version + - run: df -HT + - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev + - name: Configure + run: ./autogen.sh && ./configure + - name: Make + run: make V=1 + - name: Musl build + run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev + - name: Tests cli + run: echo sudo make TEST_LOG=dump test-cli diff --git a/.gitignore b/.gitignore index 65697ba8..aa283ec0 100644 --- a/.gitignore +++ b/.gitignore @@ -71,6 +71,7 @@ /cscope.po.out .* !.editorconfig +!.github /ci/images/*/devel.tar.gz