File: main.yml

package info (click to toggle)
libuninameslist 20260107-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,348 kB
  • sloc: ansic: 118,376; python: 142; makefile: 128; sh: 4
file content (81 lines) | stat: -rw-r--r-- 2,285 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: C
on: [push,pull_request]

jobs:
  linux:
    runs-on: ubuntu-latest
    env:
      PYTHON: python3
    strategy:
      matrix:
        choiceL: [--disable-silent-rules, --enable-frenchlib, --enable-pylib]
    steps:
      - uses: actions/checkout@v4
      - name: Create configure
        run: |
          sudo apt-get update -y
          sudo apt-get install autoconf automake libtool gcc
          autoreconf -i
          automake
      - name: Choose configure
        run: ./configure ${{ matrix.choiceL }}
      - name: Make library
        run: make
      - name: Test library
        run: make check
      - name: Test make distcheck
        if: matrix.choiceL == '--disable-silent-rules'
        run: make distcheck
  macos:
    runs-on: macos-latest
    env:
      PYTHON: python3
    strategy:
      matrix:
        choiceM: [--disable-silent-rules, --enable-frenchlib, --enable-pylib]
    steps:
      - uses: actions/checkout@v4
      - name: Create configure
        run: |
          brew install autoconf automake libtool gcc python-setuptools
          autoreconf -i
          automake
      - name: Choose configure
        run: ./configure ${{ matrix.choiceM }}
      - name: Make library
        run: make
      - name: Test library
        run: make check
  windows:
    runs-on: windows-latest
    env:
      PYTHON: python3
    strategy:
      matrix:
        include: [
          { msystem: MINGW64, tools: mingw-w64-x86_64 },
          { msystem: UCRT64, tools: mingw-w64-ucrt-x86_64 },
          { msystem: CLANG64, tools: mingw-w64-clang-x86_64 },
      ]
    name: ${{ matrix.msystem }}
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - uses: actions/checkout@v4
      - uses: msys2/setup-msys2@v2
        with:
          msystem: ${{ matrix.msystem }}
          update: true
          install: autotools base-devel git ${{matrix.tools}}-toolchain ${{matrix.tools}}-python-setuptools ${{matrix.tools}}-python-pip-tools ${{matrix.tools}}-python-wheel
      - name: Create configure
        run: |
          python --version
          autoreconf -i
          automake
      - name: Choose configure
        run: ./configure --enable-pylib
      - name: Make library
        run: make
      - name: Test library
        run: make check