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