File: zigbuild.yml

package info (click to toggle)
unicorn-engine 2.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,912 kB
  • sloc: ansic: 379,830; python: 9,213; sh: 9,011; java: 8,609; ruby: 4,241; pascal: 1,805; haskell: 1,379; xml: 490; cs: 424; makefile: 348; cpp: 298; asm: 64
file content (111 lines) | stat: -rw-r--r-- 3,112 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
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
name: Zig Build

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

on:
  push:
    paths-ignore:
      - ".gitignore"
      - "docs/**"
      - "README"
      - "CREDITS.TXT"
      - "COPYING_GLIB"
      - "COPYING.LGPL2"
      - "AUTHORS.TXT"
      - "CHANGELOG"
      - "COPYING"
  pull_request:

jobs:
  build-ubuntu:
    strategy:
      fail-fast: false
      matrix:
        runs-on: [ubuntu-latest]
    runs-on: ${{ matrix.runs-on }}
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive
          fetch-depth: 0
      - uses: mlugg/setup-zig@v1
        with:
          version: 0.14.0
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: latest
          ninjaVersion: latest

      - name: CMake Build
        run: zig build cmake
      
      - name: Build Summary
        run: zig build --summary all -freference-trace
  build-macos:
    strategy:
      fail-fast: false
      matrix:
        runs-on: [macos-latest]
    runs-on: ${{ matrix.runs-on }}
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive
          fetch-depth: 0
      - uses: mlugg/setup-zig@v1
        with:
          version: 0.14.0
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: latest
          ninjaVersion: latest

        # MacOS has a hard process limit that we will hit if we do a
        # parallel build, so disable parallel cmake build (manual
        # option set in `build.zig`)
      - name: CMake Build
        run: zig build -Dparallel=false cmake

      - name: Build Summary
        run: zig build --summary all -freference-trace
# ===================================================================  
  # zig-mingw:
  #   runs-on: windows-latest
  #   strategy:
  #     fail-fast: false
  #     matrix:
  #       include: [{ msystem: CLANG64, arch: x86_64, prefix: /clang64 }, { msystem: CLANG32, arch: i686, prefix: /clang32 }, { msystem: CLANGARM64, arch: aarch64, prefix: /clangarm64 }]
  #   steps:
  #     - uses: actions/checkout@v4
  #       with:
  #         path: temp
  #         submodules: recursive
  #         fetch-depth: 0
  #     - uses: goto-bus-stop/setup-zig@v2
  #       with:
  #         version: master
  #     - uses: msys2/setup-msys2@v2
  #       with:
  #         msystem: ${{ matrix.msystem }}
  #         path-type: inherit
  #         location: D:\
  #         install: git mingw-w64-clang-${{ matrix.arch }}-cmake
  #         update: true
      
  #     - name: Move Checkout
  #       run: |
  #         Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse

  #     - name: Build Summary - ${{ matrix.arch }}
  #       shell: msys2 {0}
  #       run: |
  #           cd /C/_
  #           zig build cmake
  #           if [${{ matrix.config.arch }} == 'i686' ]; then
  #             zig build --summary all -freference-trace -Dtarget=x86-windows
  #           else
  #             zig build --summary all -freference-trace -Dtarget=${{ matrix.arch }}-windows
  #           fi