Update build-windows.yml: use windows-2025

This commit is contained in:
Evan Su 2025-01-21 22:42:27 -05:00 committed by GitHub
parent 3fdddfb57d
commit bc4d029cf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,10 +9,11 @@ on:
- "VERSION" - "VERSION"
branches: branches:
- main - main
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: windows-2022 runs-on: windows-2025
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -34,7 +35,7 @@ jobs:
go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o 1.exe Picocrypt.go go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o 1.exe Picocrypt.go
env: env:
CGO_ENABLED: 1 CGO_ENABLED: 1
GOAMD64: v2 GOAMD64: v1
- name: Add icon, manifest, and version info - name: Add icon, manifest, and version info
shell: pwsh shell: pwsh
@ -67,7 +68,7 @@ jobs:
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: build-windows name: build-windows
path: src/Picocrypt.exe path: src/*.exe
if-no-files-found: error if-no-files-found: error
compression-level: 9 compression-level: 9