-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (39 loc) · 977 Bytes
/
windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Windows Test
on: [pull_request]
jobs:
build:
name: Windows Test
runs-on: windows-latest
steps:
- name: Set up Go 1.23
uses: actions/setup-go@v4
with:
go-version: 1.23
# Caching seems to really slow down the build due to the time
# taken to save the cache.
cache: false
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Build
if: always()
env:
CC: x86_64-w64-mingw32-gcc
shell: bash
run: |
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o dumpevtx.exe cmd/*.go
- name: Test
shell: bash
if: always()
run: |
go test -v
- name: Store Artifacts
shell: bash
if: always()
run: |
go test -v -update
- uses: actions/upload-artifact@master
if: always()
with:
name: fixtures
path: fixtures