Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: PR Checks
2
3 # Pre-merge CI to run on push and pull_request events, even if this seems
4 # redundant, we avoid concurrency with the below configuration.
5 #
6 on:
7 pull_request:
8 workflow_dispatch:
9
10 # Use the concurrency feature to ensure we don't run redundant workflows
11 #
12 concurrency:
13 group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
14 cancel-in-progress: true
15
16 # Left to-do:
17 # - coverage
18 # - publishing docs to gh-pages
19 # - persistent artifact cache
20 # - overnight jobs
21 # - wsl tasks (TODO: Check if GitHub's Windows runners allow WSL)
22 #
23 # New opportunities:
24 # - run tests on mac (GitHub provides MacOS runners)
25 # - standardize WSL tasks by using GitHub-provided runners
26
27 jobs:
28 tests:
29 runs-on: ubuntu-24.04
30 continue-on-error: ${{ matrix.allow-failure || false }}
31
32 strategy:
33 fail-fast: false
34 matrix:
35
36 # The names here should map to a valid service defined in
37 # "../compose/ci.docker-compose.yml"
38 test-name:
39 - debian-12
40 - debian-13
41 - fedora-42
42 - fedora-43
43 - fedora-missing-deps
44 - ubuntu-22.04
45 - lint
46 - mypy
47
48 include:
49 - test-name: bst-master
50 allow-failure: true
51
52 steps:
53 - name: Disable AppArmor restriction for bubblewrap
54 run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
55
56 - name: Check out repository
57 uses: actions/checkout@v2
58 # BuildStream requires tags to be able to find its version.
59 with:
60 fetch-depth: 0
61
62 - name: Run tests with Docker Compose
63 run: |
64 ${GITHUB_WORKSPACE}/.github/run-ci.sh ${{ matrix.test-name }}
65
66 docs:
67 runs-on: ubuntu-24.04
68 steps:
69 - name: Disable AppArmor restriction for bubblewrap
70 run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
71
72 - name: Check out repository
73 uses: actions/checkout@v2
74 # BuildStream requires tags to be able to find its version.
75 with:
76 fetch-depth: 0
77
78 - name: Give `testuser` ownership of the source directory
79 run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
80
81 - name: Build documentation using Docker Compose
82 run: |
83 ${GITHUB_WORKSPACE}/.github/run-ci.sh docs
84
85 - name: Upload artifacts
86 uses: actions/upload-artifact@v4
87 with:
88 name: docs
89 path: doc/build/html