Fork only: build and publish the Windows x64 installer of this branch
Not for upstream. Same steps as release.yml's Windows job, unsigned, published as a pre-release of alvarohn/lightcraft. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015gRtdWF1E9358FfzhzYqCS
This commit is contained in:
parent
90fa467d7e
commit
ed68b2e685
|
|
@ -0,0 +1,67 @@
|
|||
# Fork-only (alvarohn/lightcraft), not for upstream: builds the Windows x64 installer of this branch, unsigned,
|
||||
# and publishes it as a pre-release of the fork. Same steps as release.yml's Windows job, without signing.
|
||||
name: Fork Windows x64
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [claude/keen-heisenberg-szgpjb]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: fork-windows-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_INCREMENTAL: 0
|
||||
LIGHTCRAFT_BUILD_SHA: ${{ github.sha }}
|
||||
|
||||
jobs:
|
||||
windows:
|
||||
name: Windows x64
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
repository: storytold/craft-fonts
|
||||
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # same pin as release.yml
|
||||
path: craft-fonts
|
||||
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
|
||||
with:
|
||||
targets: x86_64-pc-windows-msvc
|
||||
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
||||
with:
|
||||
key: fork-windows-x64
|
||||
- name: Version
|
||||
shell: bash
|
||||
run: |
|
||||
v=$(awk '/^\[/ { p = ($0 == "[workspace.package]"); next } p && $1 == "version" { gsub(/[" ]/, "", $3); print $3; exit }' Cargo.toml)
|
||||
echo "LIGHTCRAFT_VERSION=$v-a7iii" >> "$GITHUB_ENV"
|
||||
echo "LIGHTCRAFT_BUILD_DATE=$(date -u +%Y-%m-%d)" >> "$GITHUB_ENV"
|
||||
- name: Install WiX
|
||||
shell: pwsh
|
||||
run: dotnet tool install --global wix --version 5.0.2
|
||||
- name: Build and package (unsigned)
|
||||
shell: pwsh
|
||||
env:
|
||||
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
|
||||
CRAFT_FONTS_REQUIRED: "1"
|
||||
run: ./packaging/windows/package.ps1 -Arch x64
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: fork-windows-x64
|
||||
path: dist/release/*
|
||||
if-no-files-found: error
|
||||
- name: Publish pre-release
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
tag="a7iii-$(date -u +%Y%m%d)-${GITHUB_SHA::7}"
|
||||
notes="LightCraft $LIGHTCRAFT_VERSION con la corrección de distorsión de la Sony A7 III (ILCE-7M3) habilitada. Compilado de ${GITHUB_SHA::9}, sin firmar: Windows muestra \"Windows protegió tu PC\" → Más información → Ejecutar de todas formas. Reemplaza a la versión oficial instalada; la próxima versión oficial la reemplaza a su vez."
|
||||
gh release create "$tag" dist/release/* --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" \
|
||||
--prerelease --title "LightCraft $LIGHTCRAFT_VERSION (A7 III)" --notes "$notes"
|
||||
Loading…
Reference in New Issue