···11+# CI and Generated Stuff Readme
22+33+<!--
44+# Copyright 2018-2022 Collabora, Ltd. and the Monado contributors
55+#
66+# SPDX-License-Identifier: CC0-1.0
77+-->
88+99+We use the FreeDesktop
1010+["CI Templates"](https://freedesktop.pages.freedesktop.org/ci-templates) to
1111+maintain build containers using code in this repo, storing the images in GitLab
1212+Registry. Our CI files (and some other files) are auto-generated from Jinja
1313+templates and `config.yml`, using
1414+[ci-fairy](https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html).
1515+You can install it with:
1616+1717+<!-- do not break the following line, it is used in CI setup too, to make sure it works -->
1818+```sh
1919+python3 -m pip install git+https://gitlab.freedesktop.org/freedesktop/ci-templates@d5aa3941aa03c2f716595116354fb81eb8012acb
2020+```
2121+2222+On Windows you will also need to have GNU make and busybox installed, such as with:
2323+2424+```pwsh
2525+scoop install make busybox
2626+```
2727+2828+To re-generate files, from the root directory, run:
2929+3030+```sh
3131+make -f .gitlab-ci/ci-scripts.mk
3232+```
3333+3434+If you really want to force rebuilding, you can build the clean target first:
3535+3636+```sh
3737+make -f .gitlab-ci/ci-scripts.mk clean all
3838+```
···11#!/bin/bash
22-# Copyright 2018-2021, Collabora, Ltd. and the Monado contributors
22+# Copyright 2018-2022, Collabora, Ltd. and the Monado contributors
33# SPDX-License-Identifier: BSL-1.0
4455(
66 cd $(dirname $0)
77 bash ./install-cross.sh
88+ # Using this script "follows the instructions" for some testing of our instructions.
99+ bash ./install-ci-fairy.sh
810)
9111012python3 -m pip install proclamation cmakelang
+11
.gitlab-ci/install-ci-fairy.sh
···11+#!/bin/sh
22+# SPDX-License-Identifier: CC0-1.0
33+# SPDX-FileCopyrightText: 2018-2022 Collabora, Ltd. and the Monado contributors
44+55+# This runs the command in the README as an extra bit of continuous integration.
66+set -e
77+88+(
99+ cd "$(dirname "$0")"
1010+ sh -c "$(grep '^python3 -m pip' README.md)"
1111+)