geode/.github/actions/setup-dump-sym/action.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2024-02-02 18:29:22 -05:00
name: Setup Breakpad Dump Symbols
description: Sets up + builds the dump_syms utility from Breakpad
inputs:
dump_syms_version:
description: "Revision of mozilla/dump_syms repository to fetch"
required: true
default: "v2.2.2"
outputs:
binary-path:
description: "Path of the dump_syms utility, including the executable."
2024-02-02 18:31:44 -05:00
value: ${{ steps.get-path.outputs.binary-path }}
2024-02-02 18:29:22 -05:00
runs:
using: "composite"
steps:
- uses: dtolnay/rust-toolchain@stable
id: toolchain
- uses: actions/cache@v4
id: binary-cache
with:
2024-02-02 18:57:11 -05:00
path: "./dump_syms/target/release/dump_syms"
2024-02-02 18:29:22 -05:00
key: dump_syms-${{ inputs.dump_syms_version }}-${{steps.toolchain.outputs.cachekey}}
- uses: actions/checkout@v4
if: steps.binary-cache.outputs.cache-hit != 'true'
with:
repository: "mozilla/dump_syms"
ref: ${{ inputs.dump_syms_version }}
path: "./dump_syms"
- run: cargo build --release
shell: bash
if: steps.binary-cache.outputs.cache-hit != 'true'
working-directory: "./dump_syms"
- run: echo "binary-path=$(realpath target/release/dump_syms)" >> "$GITHUB_OUTPUT"
shell: bash
id: get-path
working-directory: "./dump_syms"