Skip to content

Update build-release.yml #3

Update build-release.yml

Update build-release.yml #3

Workflow file for this run

name: build release
on:
push:
tags:
- '*'
jobs:
build_release:
name: build_release
runs-on: windows-2022
steps:
- name: checkout sources
uses: actions/checkout@v4
with:
submodules: 'true'
- name: build heob32.exe
run: make BITS=32 PREF= heob32.exe
env:
PATH: c:\mingw32\bin;c:\msys64\usr\bin
- name: build heob64.exe
run: make BITS=64 PREF= heob64.exe
env:
PATH: c:\mingw64\bin;c:\msys64\usr\bin
- name: compress debug artifact
shell: bash
run: 7z a -mx=9 heob-$GITHUB_REF_NAME-dbg.7z heob32.exe heob64.exe
- name: strip heob32.exe
run: make BITS=32 PREF= strip-heob32
env:
PATH: c:\mingw32\bin;c:\msys64\usr\bin
- name: strip heob64.exe
run: make BITS=64 PREF= strip-heob64
env:
PATH: c:\mingw64\bin;c:\msys64\usr\bin
- name: upload-unsigned-artifact
id: upload-unsigned-artifact
uses: actions/upload-artifact@v4
with:
name: heob-unsigned
if-no-files-found: error
path: |
heob32.exe
heob64.exe
- name: sign
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}'
project-slug: 'heob'
signing-policy-slug: 'test-signing'
github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}"
wait-for-completion: true
output-artifact-directory: 'heob-signed'
- name: compress release artifact
shell: bash
run: 7z a -mx=9 ../heob-$GITHUB_REF_NAME.7z heob32.exe heob64.exe
working-directory: heob-signed
- name: release
uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: false
name: heob ${{ github.ref_name }}
files: |
heob-${{ github.ref_name }}.7z
heob-${{ github.ref_name }}-dbg.7z