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