GitHub Actions: Upload artifact for header generator

A follow-up can then upload to a draft release.

PiperOrigin-RevId: 538718585
Change-Id: Ic6dccce6d2127a685b52e465d0e651dbfdef2cb8
This commit is contained in:
Christian Blichmann 2023-06-08 01:37:42 -07:00 committed by Copybara-Service
parent b0547f3506
commit 67d5f1b23f

View File

@ -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