Merge pull request #267 from no92/mlibc-docs-fix #391
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sanity Checks | |
on: [push, pull_request] | |
jobs: | |
compute-graph: | |
name: Compute graph | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install prerequisites | |
# Note: the default jsonschema is too old. | |
# xbstrap should fix this by demanding a recent version. | |
run: | | |
sudo apt-get install jq | |
sudo pip3 install setuptools | |
sudo pip3 install -U jsonschema | |
sudo pip3 install xbstrap | |
- name: Prepare directories | |
run: | | |
mkdir src/ | |
mkdir build/ | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: src/ | |
- name: Compute xbstrap-pipeline graph | |
run: | | |
set -x | |
cp ../src/ci/pipeline.yml . | |
echo '{"pkg_management": {"format": "xbps"}}' > bootstrap-site.yml | |
xbstrap init ../src | |
xbstrap rolling-versions fetch | |
xbstrap rolling-versions determine --json | jq '{"commits":map_values({"rolling_id":.})}' > new-bootstrap-commits.yml | |
# Ensure that the previs xbstrap command does not see bootstrap-commits.yml | |
# until the file is fully written. | |
mv new-bootstrap-commits.yml ../src/bootstrap-commits.yml | |
xbstrap-pipeline compute-graph --artifact | |
working-directory: build/ |