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-03-21 22:01:21 +00:00
|
|
|
- name: Install dependencies
|
2024-05-30 12:41:22 +00:00
|
|
|
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 tbb debuginfod wayland dbus libxkbcommon libglvnd meson cmake git wayland-protocols nodejs
|
|
|
|
- uses: actions/checkout@v4
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Profiler GUI
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
2024-04-17 16:17:58 +00:00
|
|
|
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build profiler/build --parallel
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Update utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
2024-04-17 16:17:58 +00:00
|
|
|
cmake -B update/build -S update -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build update/build --parallel
|
2020-05-05 23:09:06 +00:00
|
|
|
- name: Capture utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
2024-04-17 16:17:58 +00:00
|
|
|
cmake -B capture/build -S capture -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build capture/build --parallel
|
2020-07-11 12:56:48 +00:00
|
|
|
- name: Csvexport utility
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
2024-04-17 16:17:58 +00:00
|
|
|
cmake -B csvexport/build -S csvexport -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build csvexport/build --parallel
|
2024-07-12 20:41:26 +00:00
|
|
|
- name: Import utilities
|
2024-03-21 22:01:21 +00:00
|
|
|
run: |
|
2024-07-12 20:41:26 +00:00
|
|
|
cmake -B import/build -S import -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build import/build --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: |
|
2024-07-03 12:05:49 +00:00
|
|
|
# test compilation with different flags
|
|
|
|
# we clean the build folder to reset cached variables between runs
|
|
|
|
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build test/build --parallel
|
|
|
|
rm -rf test/build
|
|
|
|
|
|
|
|
# same with TRACY_ON_DEMAND
|
|
|
|
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_ON_DEMAND=ON .
|
|
|
|
cmake --build test/build --parallel
|
|
|
|
rm -rf test/build
|
|
|
|
|
|
|
|
# same with TRACY_DELAYED_INIT TRACY_MANUAL_LIFETIME
|
|
|
|
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_DELAYED_INIT=ON -DTRACY_MANUAL_LIFETIME=ON .
|
|
|
|
cmake --build test/build --parallel
|
|
|
|
rm -rf test/build
|
|
|
|
|
|
|
|
# same with TRACY_DEMANGLE
|
|
|
|
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_DEMANGLE=ON .
|
|
|
|
cmake --build test/build --parallel
|
|
|
|
rm -rf test/build
|
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
|
2024-07-12 20:41:26 +00:00
|
|
|
cp import/build/tracy-import-chrome bin
|
|
|
|
cp import/build/tracy-import-fuchsia bin
|
2024-03-21 22:01:21 +00:00
|
|
|
strip bin/tracy-*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: arch-linux
|
|
|
|
path: bin
|