Skip to content

Commit f979728

Browse files
committed
move to the Zig build System
1 parent 5d542dc commit f979728

File tree

193 files changed

+9697
-181704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+9697
-181704
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,77 +2,33 @@ name: build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [ windows-latest, macos-latest ]
13+
os: [windows-latest, macos-latest]
1414

1515
runs-on: ${{ matrix.os }}
1616
continue-on-error: true
1717
steps:
18-
- uses: actions/checkout@v4
19-
- if: startsWith(matrix.os, 'windows')
20-
uses: microsoft/setup-msbuild@v2
21-
- if: startsWith(matrix.os, 'windows')
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: '3.x'
25-
- if: startsWith(matrix.os, 'windows')
26-
run: pip install meson ninja
27-
- if: startsWith(matrix.os, 'macos')
28-
name: Install macos dependencies
29-
run: brew install pkg-config glfw meson
30-
- name: Profiler GUI
31-
run: |
32-
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release
33-
cmake --build profiler/build --parallel --config Release
34-
- name: Update utility
35-
run: |
36-
cmake -B update/build -S update -DCMAKE_BUILD_TYPE=Release
37-
cmake --build update/build --parallel --config Release
38-
- name: Capture utility
39-
run: |
40-
cmake -B capture/build -S capture -DCMAKE_BUILD_TYPE=Release
41-
cmake --build capture/build --parallel --config Release
42-
- name: Csvexport utility
43-
run: |
44-
cmake -B csvexport/build -S csvexport -DCMAKE_BUILD_TYPE=Release
45-
cmake --build csvexport/build --parallel --config Release
46-
- name: Import utilities
47-
run: |
48-
cmake -B import/build -S import -DCMAKE_BUILD_TYPE=Release
49-
cmake --build import/build --parallel --config Release
50-
- if: ${{ !startsWith(matrix.os, 'windows') }}
51-
name: Library
52-
run: meson setup -Dprefix=$GITHUB_WORKSPACE/bin/lib build && meson compile -C build && meson install -C build
53-
- if: ${{ !startsWith(matrix.os, 'windows') }}
54-
name: Find Artifacts
55-
id: find_artifacts
56-
run: |
57-
mkdir -p bin
58-
cp profiler/build/tracy-profiler bin
59-
cp update/build/tracy-update bin
60-
cp capture/build/tracy-capture bin
61-
cp csvexport/build/tracy-csvexport bin
62-
cp import/build/tracy-import-chrome bin
63-
cp import/build/tracy-import-fuchsia bin
64-
- if: startsWith(matrix.os, 'windows')
65-
name: Find Artifacts
66-
id: find_artifacts_windows
67-
run: |
68-
mkdir bin
69-
copy profiler\build\Release\tracy-profiler.exe bin
70-
copy update\build\Release\tracy-update.exe bin
71-
copy capture\build\Release\tracy-capture.exe bin
72-
copy csvexport\build\Release\tracy-csvexport.exe bin
73-
copy import\build\Release\tracy-import-chrome.exe bin
74-
copy import\build\Release\tracy-import-fuchsia.exe bin
75-
- uses: actions/upload-artifact@v4
76-
with:
77-
name: ${{ matrix.os }}
78-
path: bin
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Zig
21+
uses: mlugg/setup-zig@v1
22+
23+
- name: Build
24+
if: matrix.os != 'windows-latest'
25+
run: zig build -Doptimize=ReleaseFast -Dno-fileselector
26+
27+
- name: Build (windows)
28+
if: matrix.os == 'windows-latest'
29+
run: zig build -Doptimize=ReleaseFast
30+
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: ${{ matrix.os }}
34+
path: zig-out

.github/workflows/linux.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
.vs
2-
_build
3-
_compiler
4-
tools/*
5-
*.d
6-
*.o
7-
*.so
8-
*.swp
9-
*.obj
101
imgui.ini
11-
test/tracy_test
12-
test/tracy_test.exe
13-
*/build/unix/*-*
142
manual/t*.aux
153
manual/t*.log
164
manual/t*.out
@@ -21,16 +9,8 @@ manual/t*.bbl
219
manual/t*.blg
2210
manual/t*.fdb_latexmk
2311
manual/t*.fls
24-
profiler/build/win32/packages
25-
profiler/build/win32/Tracy.aps
26-
.deps/
27-
.dirstamp
28-
/_*/**
29-
/**/__pycache__/**
30-
extra/vswhere.exe
31-
extra/tracy-build
32-
.cache
3312
compile_commands.json
34-
profiler/build/wasm/Tracy-release.*
35-
profiler/build/wasm/Tracy-debug.*
36-
profiler/build/wasm/embed.tracy
13+
.zig-cache
14+
zig-cache
15+
zig-out
16+
result

.vscode/extensions.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)