From 67d5f1b23fb14d251398c658bb9f3bdd2bacf8ee Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Thu, 8 Jun 2023 01:37:42 -0700 Subject: [PATCH] GitHub Actions: Upload artifact for header generator A follow-up can then upload to a draft release. PiperOrigin-RevId: 538718585 Change-Id: Ic6dccce6d2127a685b52e465d0e651dbfdef2cb8 --- .../workflows/debian-sapi-generator-tool.yml | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/debian-sapi-generator-tool.yml b/.github/workflows/debian-sapi-generator-tool.yml index b6c740e..f90477b 100644 --- a/.github/workflows/debian-sapi-generator-tool.yml +++ b/.github/workflows/debian-sapi-generator-tool.yml @@ -37,15 +37,12 @@ jobs: - name: Install ninja-build tool uses: seanmiddleditch/gha-setup-ninja@v3 - - name: Create Build Environment - run: | - cmake -E make_directory $GITHUB_WORKSPACE/build - - name: Configure CMake run: | + mkdir -p "$GITHUB_WORKSPACE/build" cmake \ - -S $GITHUB_WORKSPACE \ - -B $GITHUB_WORKSPACE/build \ + -S "$GITHUB_WORKSPACE" \ + -B "$GITHUB_WORKSPACE/build" \ -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DSAPI_ENABLE_CLANG_TOOL=ON \ @@ -54,6 +51,17 @@ jobs: - name: Build run: | cmake \ - --build $GITHUB_WORKSPACE/build \ + --build "$GITHUB_WORKSPACE/build" \ --config Release \ --target sapi_generator_tool + ( \ + cd "$GITHUB_WORKSPACE/build"; \ + mv sandboxed_api/tools/clang_generator/sapi_generator_tool \ + sapi_generator_tool-linux-x86_64; \ + ) + + - name: Upload Build Artifact + uses: actions/upload-artifact@v3.1.2 + with: + name: sapi_generator_tool-linux + path: ${{github.workspace}}/build/sapi_generator_tool-linux-x86_64