2023-11-19 13:07:40 +00:00
|
|
|
name: linux
|
2020-05-05 23:09:06 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-03-21 22:01:21 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-11-19 13:07:40 +00:00
|
|
|
container: archlinux:base-devel
|
2020-05-05 23:09:06 +00:00
|
|
|
steps:
|
2024-02-12 09:50:36 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-21 22:01:21 +00:00
|
|
|
- name: Install dependencies
|
2024-03-22 23:36:52 +00:00
|
|
|
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 tbb debuginfod wayland dbus libxkbcommon libglvnd meson cmake git wayland-protocols
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Profiler GUI
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B profiler/build -S profiler
|
|
|
|
cmake --build profiler/build --config Release --parallel
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Update utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B update/build -S update
|
|
|
|
cmake --build update/build --config Release --parallel
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Capture utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B capture/build -S capture
|
|
|
|
cmake --build capture/build --config Release --parallel
|
2020-07-11 12:56:48 +00:00
|
|
|
- name: Csvexport utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B csvexport/build -S csvexport
|
|
|
|
cmake --build csvexport/build --config Release --parallel
|
2020-06-24 00:08:03 +00:00
|
|
|
- name: Import-chrome utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B import-chrome/build -S import-chrome
|
|
|
|
cmake --build import-chrome/build --config Release --parallel
|
2023-12-28 22:47:21 +00:00
|
|
|
- name: Import-fuchsia utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
|
|
|
cmake -B import-fuchsia/build -S import-fuchsia
|
|
|
|
cmake --build import-fuchsia/build --config Release --parallel
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Library
|
2024-03-21 22:01:21 +00:00
|
|
|
run: meson setup -Dprefix=$GITHUB_WORKSPACE/bin/lib build && meson compile -C build && meson install -C build
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Test application
|
|
|
|
run: |
|
2022-07-02 15:46:36 +00:00
|
|
|
make -j`nproc` -C test
|
|
|
|
make -j`nproc` -C test clean
|
|
|
|
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
|
|
|
|
make -j`nproc` -C test clean
|
|
|
|
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
2023-09-05 23:28:58 +00:00
|
|
|
make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE'
|
2024-03-21 22:01:21 +00:00
|
|
|
- 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
|