mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
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:
parent
b0547f3506
commit
67d5f1b23f
22
.github/workflows/debian-sapi-generator-tool.yml
vendored
22
.github/workflows/debian-sapi-generator-tool.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user