mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-13 06:08:30 +02:00
Update build-windows.yml
This commit is contained in:
parent
398e1e5c32
commit
2646518018
1 changed files with 9 additions and 3 deletions
12
.github/workflows/build-windows.yml
vendored
12
.github/workflows/build-windows.yml
vendored
|
@ -14,18 +14,24 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.22'
|
go-version: '>=1.22'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
cache-dependency-path: src/go.sum
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
cd src
|
||||||
|
go mod download
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o Picocrypt.exe src/Picocrypt.go
|
run: go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -v -o Picocrypt.exe Picocrypt.go
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-windows
|
name: build-windows
|
||||||
|
|
Loading…
Add table
Reference in a new issue