File: test.yml

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (53 lines) | stat: -rw-r--r-- 1,570 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
50
51
52
53
name: USDT CI

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build-and-test:

    strategy:
      fail-fast: false
      matrix:
        runs-on: [ 'ubuntu-latest', 'ubuntu-24.04-arm' ]
        shared: [ 0, 1 ]
        compiler:
          - { name: 'gcc', version: 11 }
          - { name: 'gcc', version: 12 }
          - { name: 'gcc', version: 13 }
          - { name: 'gcc', version: 14 }
          - { name: 'llvm', version: 17 }
          - { name: 'llvm', version: 18 }
          - { name: 'llvm', version: 19 }

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

    name: ${{ endsWith(matrix.runs-on, '-arm') && 'arm64' || 'x86_64' }} ${{ matrix.shared == 1 && 'shared' || 'static' }} ${{ matrix.compiler.name }}-${{ matrix.compiler.version }}

    env:
      COMPILER: ${{ matrix.compiler.name }}
      COMPILER_VERSION: ${{ matrix.compiler.version }}
      SHARED: ${{ matrix.shared }}

    steps:
    - uses: actions/checkout@v4

    - name: Install prerequisites
      run: sudo -E .github/scripts/setup.sh

    - name: Build SHARED=${{ matrix.shared }}
      run: .github/scripts/build.sh

    - name: Test SHARED=${{ matrix.shared }}
      run: make -C tests test

    - uses: actions/upload-artifact@v4
      if: always()
      with:
        name: tests-output-${{ endsWith(matrix.runs-on, '-arm') && 'arm64' || 'x86_64' }}-${{ matrix.shared == 1 && 'shared' || 'static' }}-${{ matrix.compiler.name }}-${{ matrix.compiler.version }}
        if-no-files-found: warn
        path: tests/.output
        include-hidden-files: true