From 72e0a95f7f89128557c745e5801b90f26c0f45e1 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 2 Oct 2022 12:40:43 -0400 Subject: Add stable regression test This tests stable maintenance branches, to ensure that build directories created with older versions of Meson continue to work without wiping, after updating to a bugfix release. --- .github/workflows/stable_builddir.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/stable_builddir.yml (limited to '.github') diff --git a/.github/workflows/stable_builddir.yml b/.github/workflows/stable_builddir.yml new file mode 100644 index 0000000..5da321d --- /dev/null +++ b/.github/workflows/stable_builddir.yml @@ -0,0 +1,35 @@ +name: stable build directories + +on: + push: + branches: + - '[0-9]+.[0-9]+' + +permissions: + contents: read + +jobs: + regression: + runs-on: ubuntu-latest + env: + TESTDIR: "manual tests/13 builddir upgrade" + steps: + - uses: actions/checkout@v3 + - name: install ninja + run: sudo apt-get -y install build-essential ninja-build + - name: Fetch tags and unshallow + run: git fetch --unshallow --tags + - name: Checkout latest release on this branch + run: | + cp -r "$TESTDIR" "$TESTDIR"-temp + git checkout "$(git describe --abbrev=0)" + - name: Configure with most recent tag + run: ./meson.py setup "$TESTDIR"-temp builddir + - name: Return to testing commit + run: git checkout $GITHUB_SHA + - name: check that everything still works + run: | + ./meson.py compile -C builddir + ninja -C builddir test + DESTDIR=pkg ninja -C builddir install + ./meson.py introspect builddir --all -- cgit v1.1