From 77f0bbebe22097a85660bef16bff680ca3982aba Mon Sep 17 00:00:00 2001
From: loveuer <loveuer@live.com>
Date: Tue, 26 Mar 2024 12:15:20 +0800
Subject: [PATCH] fix: github action

---
 .github/workflows/build.yml | 9 ++++++++-
 .gitignore                  | 3 ++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ba1199d..a88c24c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,10 +13,13 @@ jobs:
       pull-requests: write
       repository-projects: write
     steps:
+      - name: checkout repository
+        uses: actions/checkout@v4
+
       - name: install golang
         uses: actions/setup-go@v4
         with:
-          go-version: '1.20'
+          go-version: '1.18'
 
       - name: build linux amd64
         run: CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' -o dist/esgo2dump_${{ github.ref_name }}_linux_amd64 .
@@ -27,6 +30,9 @@ jobs:
       - name: build windows amd64
         run: CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -ldflags='-s -w' -o dist/esgo2dump_${{ github.ref_name }}_windows_amd64.exe .
 
+      - name: build windows arm64
+        run: CGO_ENABLE=0 GOOS=windows GOARCH=arm64 go build -ldflags='-s -w' -o dist/esgo2dump_${{ github.ref_name }}_windows_arm64.exe .
+
       - name: build darwin amd64
         run: CGO_ENABLE=0 GOOS=darwin GOARCH=amd64 go build -ldflags='-s -w' -o dist/esgo2dump_${{ github.ref_name }}_darwin_amd64 .
 
@@ -43,6 +49,7 @@ jobs:
             dist/esgo2dump_${{ github.ref_name }}_linux_amd64
             dist/esgo2dump_${{ github.ref_name }}_linux_arm64
             dist/esgo2dump_${{ github.ref_name }}_windows_amd64.exe
+            dist/esgo2dump_${{ github.ref_name }}_windows_arm64.exe
             dist/esgo2dump_${{ github.ref_name }}_darwin_amd64
             dist/esgo2dump_${{ github.ref_name }}_darwin_amd64
             dist/esgo2dump_${{ github.ref_name }}_darwin_arm64
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index f21e67f..39281aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,5 @@ data.json
 mapping.json
 setting.json
 output.json
-*.txt
\ No newline at end of file
+*.txt
+dist
\ No newline at end of file