Skip to content

baulk: 4.3.2 fix extract symlink #1051

baulk: 4.3.2 fix extract symlink

baulk: 4.3.2 fix extract symlink #1051

Workflow file for this run

name: BaulkCI
on:
push:
paths-ignore:
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
- "docs/**"
- "**.md"
- "**.txt"
- "!CMakeLists.txt"
- "LICENSE"
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "**.txt"
- "!CMakeLists.txt"
- "LICENSE"
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target: [baulk-win64,baulk-arm64]
include:
- target: baulk-win64
short_target: win64
- target: baulk-arm64
short_target: arm64
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: compile-baulk
run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./script/build.ps1" -Target "${{ matrix.short_target }}"
- name: Package Release
if: startsWith(github.ref, 'refs/tags/')
run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./script/package.ps1" -Target "${{ matrix.short_target }}"
- name: Load PFX File from GitHub Secrets
if: startsWith(github.ref, 'refs/tags/')
id: savepfx
shell: pwsh
env:
BAULK_APPX_SIGNATURE_PFX: ${{ secrets.BAULK_APPX_SIGNATURE_PFX }}
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("$env:BAULK_APPX_SIGNATURE_PFX")
$currentDirectory = Get-Location
$certificatePath = Join-Path -Path $currentDirectory -ChildPath "build\Key.pfx"
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
Write-Host "Write $certificatePath success"
Get-Item $certificatePath
- name: Make Appx
if: startsWith(github.ref, 'refs/tags/')
run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./msix/makeAppx.ps1" -Target "${{ matrix.short_target }}"
- name: Make Unscrew Extractor Appx
if: startsWith(github.ref, 'refs/tags/')
run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./msix/makeUnscrewAppx.ps1" -Target "${{ matrix.short_target }}"
- name: Publish Artifacts
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
file_glob: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/destination/*
tag: ${{ github.ref }}
overwrite: true