File: ci.yml

package info (click to toggle)
policykit-1 126-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,584 kB
  • sloc: ansic: 19,434; xml: 3,606; sh: 534; python: 111; javascript: 83; makefile: 48; exp: 37; perl: 11
file content (39 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
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
39
---
# vi: ts=2 sw=2 et:

name: Build & test
on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    container:
      image: registry.fedoraproject.org/fedora:latest
      options: "--privileged"
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.phase }}
      cancel-in-progress: true
    strategy:
      fail-fast: false
      matrix:
        phase: [BUILD_GCC, GCC, GCC_ASAN_UBSAN, BUILD_CLANG, CLANG]
    steps:
      - name: Repository checkout
        uses: actions/checkout@v4

      - name: Install build & test dependencies
        run: |
          sudo dnf install -y dnf-plugins-core python3-dbusmock clang compiler-rt libasan libubsan mozjs115-devel
          sudo dnf builddep -y polkit

      - name: Build & test
        run: sudo --preserve-env=GITHUB_ACTIONS,CI .github/workflows/ci.sh ${{ matrix.phase }}