Skip to content

build(deps): bump lib/crashpad from 7e36850 to 11b9eaf #70

build(deps): bump lib/crashpad from 7e36850 to 11b9eaf

build(deps): bump lib/crashpad from 7e36850 to 11b9eaf #70

Workflow file for this run

name: Build
on:
push:
branches:
- main
- "release/*"
pull_request:
workflow_dispatch:
merge_group:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: "Build on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Enable Developer Command Prompt (Windows)
if: startsWith(matrix.os, 'windows')
uses: ilammy/msvc-dev-cmd@v1.13.0
- name: Build (Windows)
if: startsWith(matrix.os, 'windows')
shell: pwsh
run: |
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release
ninja -C build
- name: Upload artifact (Windows)
if: startsWith(matrix.os, 'windows')
uses: actions/upload-artifact@v4
with:
name: crashpad-handler.exe
path: build/bin/crashpad/crashpad-handler.exe
check-release:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
outputs:
IS_TAGGED: ${{ steps.is-rel.outputs.IS_TAGGED }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # we need the tags
- name: Check Release
id: is-rel
run: |
set +e;
git describe --exact-match --match 'v*' &> /dev/null;
echo "IS_TAGGED=$?" >> "$GITHUB_OUTPUT";
shell: bash
draft-release:
runs-on: ubuntu-latest
needs: [build, check-release]
if: ${{ needs.check-release.outputs.IS_TAGGED == '0' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # we need the tags
- uses: actions/download-artifact@v4
with:
name: crashpad-handler.exe
path: build/
- name: Get Tag
id: get-tag
run: echo "VALUE=$(git describe --exact-match --match 'v*')" >> "$GITHUB_OUTPUT"
- name: Create release
uses: ncipollo/release-action@v1.14.0
with:
replacesArtifacts: true
allowUpdates: true
artifactErrorsFailBuild: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
draft: true
artifacts: "build/*"
name: ${{ steps.get-tag.outputs.VALUE }}
tag: ${{ steps.get-tag.outputs.VALUE }}