@@ -2,77 +2,33 @@ name: build
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 pull_request :
7- branches : [ master ]
7+ branches : [master]
88
99jobs :
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
0 commit comments