File: ci.yml

package info (click to toggle)
libatomic-queue 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,356 kB
  • sloc: cpp: 1,704; javascript: 315; makefile: 127; ansic: 91; python: 82; sh: 76
file content (49 lines) | stat: -rw-r--r-- 1,209 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
40
41
42
43
44
45
46
47
48
49
name: Makefile Continuous Integrations

on:
  push:
    branches: [ master ]
    paths:
      - '!**'
      - '**.h'
      - '**.cc'
      - Makefile
      - .github/workflows/ci.yml
  pull_request:
    branches: [ master ]
    paths:
      - '!**'
      - '**.h'
      - '**.cc'
      - Makefile
      - .github/workflows/ci.yml

jobs:
  unit-test:
    strategy:
      matrix:
        toolset: [gcc, clang]
        os: [ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm]

    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v6

    - name: Install Boost.Test
      run: sudo apt-get install --yes -qq libboost-test-dev

    - name: Environment variables
      run: make -r TOOLSET=${{ matrix.toolset }} env

    - name: Toolset versions
      run: make -r TOOLSET=${{ matrix.toolset }} versions

    - name: Build and run unit tests
      run: make -rj2 TOOLSET=${{ matrix.toolset }} example run_tests

    - name: Build and run unit tests with address sanitizer
      run: make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize2 run_tests

    - name: Build and run unit tests with thread sanitizer
      run: make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize run_tests