| 1 |
name: stable build directories |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- '[0-9]+.[0-9]+' |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
jobs: |
| 12 |
regression: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
env: |
| 15 |
TESTDIR: "manual tests/13 builddir upgrade" |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@v4 |
| 18 |
- name: install ninja |
| 19 |
run: sudo apt-get -y install build-essential ninja-build |
| 20 |
- name: Fetch tags and unshallow |
| 21 |
run: git fetch --unshallow --tags |
| 22 |
- name: Checkout latest release on this branch |
| 23 |
run: | |
| 24 |
cp -r "$TESTDIR" "$TESTDIR"-temp |
| 25 |
git checkout "$(git describe --abbrev=0)" |
| 26 |
- name: Configure with most recent tag |
| 27 |
run: ./meson.py setup "$TESTDIR"-temp builddir |
| 28 |
- name: Return to testing commit |
| 29 |
run: git checkout $GITHUB_SHA |
| 30 |
- name: check that everything still works |
| 31 |
run: | |
| 32 |
./meson.py compile -C builddir |
| 33 |
ninja -C builddir test |
| 34 |
DESTDIR=pkg ninja -C builddir install |
| 35 |
./meson.py introspect builddir --all |