aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-10-02 12:40:43 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-10-02 14:22:21 -0400
commit72e0a95f7f89128557c745e5801b90f26c0f45e1 (patch)
tree370bb0232665880532645286b43a64ef46760d27 /.github
parentc20fb659f600149c08d635fc3750f03632164b9b (diff)
downloadmeson-72e0a95f7f89128557c745e5801b90f26c0f45e1.zip
meson-72e0a95f7f89128557c745e5801b90f26c0f45e1.tar.gz
meson-72e0a95f7f89128557c745e5801b90f26c0f45e1.tar.bz2
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/stable_builddir.yml35
1 files changed, 35 insertions, 0 deletions
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