summaryrefslogtreecommitdiff
path: root/third_party/mcpc/.github/workflows/mcpc.yml
blob: 832395b3f56de3fe7cc54ab00ab6066175248e9d (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: mcpc
run-name: mcpc
on: [push]
jobs:
  x64-linux-gcc10-glibc231:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - run: ls -l .
      - run: sudo apt-get install -y buildah podman
      - run: buildah from --name wctn docker.io/library/debian:bullseye
      - run: buildah run wctn -- apt-get update
      - run: buildah run wctn -- apt-get install -y sudo bash gcc make
      - run: buildah copy wctn ../mcpc /mcpc
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make tst"
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make install"
      - run: buildah run wctn -- bash -c "ls -l /usr/local/lib"
  x64-linux-gcc12-glibc236:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - run: ls -l .
      - run: sudo apt-get install -y buildah podman
      - run: buildah from --name wctn docker.io/library/debian:bookworm
      - run: buildah run wctn -- apt-get update
      - run: buildah run wctn -- apt-get install -y sudo bash gcc make
      - run: buildah copy wctn ../mcpc /mcpc
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make tst"
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make install"
      - run: buildah run wctn -- bash -c "ls -l /usr/local/lib"
  x64-linux-gcc14-glibc240:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - run: ls -l .
      - run: sudo apt-get install -y buildah podman
      - run: buildah from --name wctn docker.io/library/fedora:41
      - run: buildah run wctn -- dnf install -y bash gcc make
      - run: buildah copy wctn ../mcpc /mcpc
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make tst"
      - run: buildah run wctn -- bash -c "cd /mcpc && CC=gcc make install"
      - run: buildah run wctn -- bash -c "ls -l /usr/local/lib"
  x64-win2022-vs2022:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: windows-2022
    steps:
      - uses: actions/checkout@v4
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  dir' }}
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  make' }}
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  make tst' }}
      - run: dir tst/itst-svcalc.exe
      - run: ldd tst/itst-svcalc.exe
  x64-win2025-vs2022:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: windows-2025
    steps:
      - uses: actions/checkout@v4
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  dir' }}
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  make' }}
      - shell: cmd
        run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" &&  make tst' }}
      - run: dir tst/itst-svcalc.exe
      - run: ldd tst/itst-svcalc.exe
  x64-win2022-gcc:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: windows-2022
    steps:
      - uses: actions/checkout@v4
      - run: gcc --version
      - run: make --version
      - run: make tst
      - run: ldd tst/itst-svcalc.out
  x64-win2025-gcc:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: windows-2025
    steps:
      - uses: actions/checkout@v4
      - run: gcc --version
      - run: make --version
      - run: make tst
      - run: ldd tst/itst-svcalc.out
  x64-mac13-clang:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: macos-13
    steps:
      - uses: actions/checkout@v4
      - run: make tst
      - run: otool -L tst/itst-svcalc.out
  x64-mac14-clang:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: macos-14
    steps:
      - uses: actions/checkout@v4
      - run: make tst
      - run: otool -L tst/itst-svcalc.out
  x64-mac15-clang:
    if: contains(github.event.head_commit.message, 'NO_GH_CI') == false
    runs-on: macos-15
    steps:
      - uses: actions/checkout@v4
      - run: make tst
      - run: otool -L tst/itst-svcalc.out