Skip to content
Prev Previous commit
Next Next commit
Update linux.yml
test

(cherry picked from commit 8d06f40)
  • Loading branch information
FxMorin committed Sep 12, 2024
commit dd40251d088524fd2327869ba7aacee889cd72a9
37 changes: 18 additions & 19 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,53 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- name: Install dependencies
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 tbb debuginfod dbus libxkbcommon libglvnd meson cmake git nodejs
run: apt install build-essential libdbus-1-dev libfreetype-dev libtbb-dev libglfw3-dev freetype2 tbb debuginfod dbus libxkbcommon libglvnd meson cmake git nodejs
- uses: actions/checkout@v4
- name: Profiler GUI
run: |
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build profiler/build --parallel
cmake --build profiler/build --parallel -DLEGACY=ON
- name: Update utility
run: |
cmake -B update/build -S update -DCMAKE_BUILD_TYPE=Release
cmake --build update/build --parallel
cmake -B update/build -S update -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build update/build --parallel -DLEGACY=ON
- name: Capture utility
run: |
cmake -B capture/build -S capture -DCMAKE_BUILD_TYPE=Release
cmake --build capture/build --parallel
cmake -B capture/build -S capture -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build capture/build --parallel -DLEGACY=ON
- name: Csvexport utility
run: |
cmake -B csvexport/build -S csvexport -DCMAKE_BUILD_TYPE=Release
cmake --build csvexport/build --parallel
cmake -B csvexport/build -S csvexport -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build csvexport/build --parallel -DLEGACY=ON
- name: Import utilities
run: |
cmake -B import/build -S import -DCMAKE_BUILD_TYPE=Release
cmake --build import/build --parallel
cmake -B import/build -S import -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build import/build --parallel -DLEGACY=ON
- name: Library
run: meson setup -Dprefix=$GITHUB_WORKSPACE/bin/lib build && meson compile -C build && meson install -C build
- name: Test application
run: |
# 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
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DLEGACY=ON
cmake --build test/build --parallel -DLEGACY=ON
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
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_ON_DEMAND=ON -DLEGACY=ON .
cmake --build test/build --parallel -DLEGACY=ON
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
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_DELAYED_INIT=ON -DTRACY_MANUAL_LIFETIME=ON -DLEGACY=ON .
cmake --build test/build --parallel -DLEGACY=ON
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
cmake -B test/build -S test -DCMAKE_BUILD_TYPE=Release -DTRACY_DEMANGLE=ON -DLEGACY=ON .
cmake --build test/build --parallel -DLEGACY=ON
rm -rf test/build
- name: Find Artifacts
id: find_artifacts
Expand Down