From 650e1b9739d6e02cbacc07b72042935b089b6ea6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 20 Sep 2024 22:09:30 +0200 Subject: [PATCH] Pass github.sha as git rev. --- .github/workflows/build.yml | 2 +- .github/workflows/emscripten.yml | 2 +- .github/workflows/linux.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff00fac0..a6fa05d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: run: brew install pkg-config glfw meson - name: Profiler GUI run: | - cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release + cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DGIT_REV=${{ github.sha }} cmake --build profiler/build --parallel --config Release - name: Update utility run: | diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 8d932635..25d9efd9 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - name: Profiler GUI run: | - cmake -G Ninja -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=${{env.EMSDK}}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake + cmake -G Ninja -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=MinSizeRel -DGIT_REV=${{ github.sha }} -DCMAKE_TOOLCHAIN_FILE=${{env.EMSDK}}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake cmake --build profiler/build --parallel - name: Compress artifacts run: | diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b0ed2592..6b65a630 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - name: Profiler GUI run: | - cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release + cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DGIT_REV=${{ github.sha }} cmake --build profiler/build --parallel - name: Update utility run: |