From 52cead5a61185a071e1dd7018ec95f225fad47ac Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Fri, 17 Jan 2025 11:12:33 -0800 Subject: [PATCH] upload minimal example --- .github/actions/build_cli_target/action.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/actions/build_cli_target/action.yaml b/.github/actions/build_cli_target/action.yaml index 41c24786..27561847 100644 --- a/.github/actions/build_cli_target/action.yaml +++ b/.github/actions/build_cli_target/action.yaml @@ -19,6 +19,19 @@ runs: # NOTE: DO NOT BUILD WORKSPACE OTHERWISE THE CLI MAY BE LINKED TO UNNECESSARY LIBRARIES run: cargo build -q -p trunk-analytics-cli --profile=${{ inputs.profile }} --target=${{ inputs.target }} + # DO NOT LAND + - name: Build minimal CLI example for ${{ inputs.target }} target + shell: bash + # NOTE: DO NOT BUILD WORKSPACE OTHERWISE THE CLI MAY BE LINKED TO UNNECESSARY LIBRARIES + run: cargo build -q -p trunk-analytics-cli --example minimal --profile=${{ inputs.profile }} --target=${{ inputs.target }} + + # DO NOT LAND + - name: Upload minimal CLI example + uses: actions/upload-artifact@v4 + with: + name: minimal-cli-example-${{ inputs.target }}-${{ inputs.profile }} + path: ./target/${{ inputs.target }}/${{ inputs.profile }}/examples/minimal + - name: Create binary with debug info shell: bash run: cp target/${{ inputs.target }}/${{ inputs.profile }}/trunk-analytics-cli target/${{ inputs.target }}/${{ inputs.profile }}/trunk-analytics-cli.debug