-
-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (36 loc) · 1.37 KB
/
sanity-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Sanity Checks
on: [push, pull_request]
jobs:
compute-graph:
strategy:
matrix:
arch: [x86_64, aarch64, riscv64]
name: Compute graph
runs-on: ubuntu-24.04
steps:
- name: Install prerequisites
run: |
sudo apt-get install jq
sudo pip3 install setuptools
sudo pip3 install xbstrap y4
- 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/xbbs/${{ matrix.arch }}/pipeline.yml .
cp ../src/xbbs/${{ matrix.arch }}/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/