mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-14 22:48:31 +02:00
33 lines
658 B
YAML
33 lines
658 B
YAML
name: build-windows
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "src/*.go"
|
|
- "src/go.mod"
|
|
- "src/go.sum"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '>=1.22'
|
|
check-latest: true
|
|
|
|
- name: Build
|
|
run: go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o Picocrypt.exe src/Picocrypt.go
|
|
env:
|
|
CGO_ENABLED: 1
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-windows
|
|
path: Picocrypt.exe
|
|
if-no-files-found: error
|
|
compression-level: 9
|