Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/alternative-build-systems.yml
blob: 4ceaada803557b642a1cba9996ac98f94aac138c (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
name: Alternative Build Systems

on:
  push:
    branches: [devel]
  pull_request:

permissions:
  contents: read

jobs:
  xmake:
    name: Xmake on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [windows-2025-vs2026, ubuntu-26.04]

    steps:
      - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
        with:
          persist-credentials: false

      - uses: xmake-io/github-action-setup-xmake@3a1a5dddfc7fa625d9a698738334bf55655a861a # v1
        with:
          xmake-version: '3.1.1'

      - name: Configure Clang build
        run: xmake f --toolchain=${{ runner.os == 'Windows' && 'clang-cl' || 'clang' }} -m debug -y

      - name: Build
        run: xmake -j 4

      - name: Run property tests
        run: xmake run ProgmasoftPropertyTests

  premake:
    name: Premake on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [windows-2022, ubuntu-26.04]

    steps:
      - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
        with:
          persist-credentials: false

      - uses: abel0b/setup-premake@b80dc6f70e8ab159fb854bdadbeb1a53cfc28723 # v2.4
        with:
          version: '5.0.0-beta7'

      - uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
        if: runner.os == 'Windows'
        with:
          msbuild-architecture: x64

      - name: Generate and build Visual Studio projects
        if: runner.os == 'Windows'
        shell: pwsh
        run: |
          premake5 vs2022
          msbuild build/premake/Catch3.sln /m /p:Configuration=Debug /p:Platform=x64 /nologo

      - name: Run property tests on Windows
        if: runner.os == 'Windows'
        run: build/premake/bin/Debug/ProgmasoftPropertyTests.exe

      - name: Generate and build Clang Makefiles
        if: runner.os == 'Linux'
        run: |
          premake5 gmake --cc=clang
          make -C build/premake config=debug -j 4

      - name: Run property tests on Linux
        if: runner.os == 'Linux'
        run: build/premake/bin/Debug/ProgmasoftPropertyTests