mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-08 14:39:48 +00:00
c4190ca330
To ensure that package indexes are up to date. That should help to avoid recent failed CI runs, which failed to install certain packages as local cache is out-of-date and remote mirrors no longer provide that specific (and out-of-date) version of package: E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_255.4-1ubuntu8.1_amd64.deb 404 Not Found [IP: 52.147.219.192 80] Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> [ Minor modification on the commit message. ] Signed-off-by: Qu Wenruo <wqu@suse.com> [ Move cache update to a separate command. ] Signed-off-by: David Sterba <dsterba@suse.com>
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
# Workflow for testing pull request against branches 'devel' or 'master'
|
|
#
|
|
# Derived from CI workflow for 'devel' but simplified to only the most common
|
|
# tests, more problems could be caught by other workflows after merge.
|
|
#
|
|
# - build tests
|
|
# - various runtime tests
|
|
|
|
name: Pull request build and tests
|
|
run-name: Pull request build and tests
|
|
on:
|
|
pull_request:
|
|
branches: [ "devel", "master" ]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: uname -a
|
|
- run: sudo modprobe btrfs
|
|
- run: sudo apt-get update -qqq
|
|
- 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 attr jq
|
|
- name: Configure
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
- 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: Make static
|
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
|
|
- name: Make box.static
|
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static
|
|
- 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
|
|
- name: Tests fuzz
|
|
run: sudo make TEST_LOG=dump test-fuzz
|
|
- name: Save logs on failure
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: "tests/*-results.txt"
|
|
if-no-files-found: ignore
|