mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
+37
-13
@@ -8,29 +8,38 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
container: archlinux:base-devel
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install linux libraries
|
||||
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 capstone tbb debuginfod wayland dbus libxkbcommon libglvnd meson
|
||||
- name: Install dependencies
|
||||
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 capstone tbb debuginfod wayland dbus libxkbcommon libglvnd meson cmake git wayland-protocols
|
||||
- name: Profiler GUI
|
||||
run: make -j`nproc` -C profiler/build/unix debug release
|
||||
run: |
|
||||
cmake -B profiler/build -S profiler
|
||||
cmake --build profiler/build --config Release --parallel
|
||||
- name: Update utility
|
||||
run: make -j`nproc` -C update/build/unix debug release
|
||||
run: |
|
||||
cmake -B update/build -S update
|
||||
cmake --build update/build --config Release --parallel
|
||||
- name: Capture utility
|
||||
run: make -j`nproc` -C capture/build/unix debug release
|
||||
run: |
|
||||
cmake -B capture/build -S capture
|
||||
cmake --build capture/build --config Release --parallel
|
||||
- name: Csvexport utility
|
||||
run: make -j`nproc` -C csvexport/build/unix debug release
|
||||
run: |
|
||||
cmake -B csvexport/build -S csvexport
|
||||
cmake --build csvexport/build --config Release --parallel
|
||||
- name: Import-chrome utility
|
||||
run: make -j`nproc` -C import-chrome/build/unix debug release
|
||||
run: |
|
||||
cmake -B import-chrome/build -S import-chrome
|
||||
cmake --build import-chrome/build --config Release --parallel
|
||||
- name: Import-fuchsia utility
|
||||
run: make -j`nproc` -C import-fuchsia/build/unix debug release
|
||||
run: |
|
||||
cmake -B import-fuchsia/build -S import-fuchsia
|
||||
cmake --build import-fuchsia/build --config Release --parallel
|
||||
- name: Library
|
||||
run: make -j`nproc` -C library/unix debug release
|
||||
- name: Library (meson)
|
||||
run: meson setup -Dprefix=$PWD/install build && meson compile -C build && meson install -C build
|
||||
run: meson setup -Dprefix=$GITHUB_WORKSPACE/bin/lib build && meson compile -C build && meson install -C build
|
||||
- name: Test application
|
||||
run: |
|
||||
make -j`nproc` -C test
|
||||
@@ -39,3 +48,18 @@ jobs:
|
||||
make -j`nproc` -C test clean
|
||||
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
||||
make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE'
|
||||
- name: Find Artifacts
|
||||
id: find_artifacts
|
||||
run: |
|
||||
mkdir -p bin
|
||||
cp profiler/build/tracy-profiler bin
|
||||
cp update/build/tracy-update bin
|
||||
cp capture/build/tracy-capture bin
|
||||
cp csvexport/build/tracy-csvexport bin
|
||||
cp import-chrome/build/tracy-import-chrome bin
|
||||
cp import-fuchsia/build/tracy-import-fuchsia bin
|
||||
strip bin/tracy-*
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: arch-linux
|
||||
path: bin
|
||||
|
||||
Reference in New Issue
Block a user