Skip to content

Commit 87758d3

Browse files
committed
remove arm64 build
1 parent 7fbdd17 commit 87758d3

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,8 @@ jobs:
246246
- name: Setup
247247
run : |
248248
New-Item -ItemType Directory -Force -Path "${{ env.OUTPUT_DIR }}\amd64"
249-
New-Item -ItemType Directory -Force -Path "${{ env.OUTPUT_DIR }}\arm64"
250249
Copy-Item -Force -Path "${{ env.SRC_DIR }}\cmd\config.yaml" -Destination "${{ env.OUTPUT_DIR }}\amd64\"
251-
Copy-Item -Force -Path "${{ env.SRC_DIR }}\cmd\config.yaml" -Destination "${{ env.OUTPUT_DIR }}\arm64\"
252-
250+
253251
- name: Build ${{ env.APP_NAME }} for amd64
254252
run: |
255253
Set-Location -Path "${{ env.SRC_DIR }}"
@@ -263,19 +261,6 @@ jobs:
263261
go build -x -v -tags bn256 -ldflags "-X main.VersionStr=v${{ env.VERSION }}" -o ${{ env.OUTPUT_DIR }}\amd64\${{ env.APP_NAME }}.exe .
264262
shell: pwsh
265263

266-
- name: Build ${{ env.APP_NAME }} for arm64
267-
run: |
268-
Set-Location -Path "${{ env.SRC_DIR }}"
269-
$env:CGO_ENABLED="1"
270-
$env:CC="aarch64-w64-mingw32-gcc"
271-
$env:CXX="aarch64-w64-mingw32-g++"
272-
$env:GOOS="windows"
273-
$env:GOARCH="arm64"
274-
where aarch64-w64-mingw32-gcc
275-
where aarch64-w64-mingw32-g++
276-
go build -x -v -tags bn256 -ldflags "-X main.VersionStr=v${{ env.VERSION }}" -o ${{ env.OUTPUT_DIR }}\arm64\${{ env.APP_NAME }}.exe .
277-
shell: pwsh
278-
279264
- name: Create Zip File for windows/amd64
280265
run: |
281266
Set-Location -Path "${{ env.OUTPUT_DIR }}\amd64"
@@ -285,18 +270,7 @@ jobs:
285270
uses: actions/upload-artifact@v3
286271
with:
287272
name: ${{ env.APP_NAME }}-windows-amd64
288-
path: ${{ env.OUTPUT_DIR }}\amd64\${{ env.APP_NAME }}-windows-amd64.zip
289-
290-
- name: Create Zip File for windows/arm64
291-
run: |
292-
Set-Location -Path "${{ env.OUTPUT_DIR }}\arm64"
293-
Compress-Archive -Path ${{ env.APP_NAME }}.exe config.yaml -DestinationPath ${{ env.APP_NAME }}-windows-arm64.zip
294-
295-
- name: Upload Zip for windows/arm64
296-
uses: actions/upload-artifact@v3
297-
with:
298-
name: ${{ env.APP_NAME }}-windows-arm64
299-
path: ${{ env.OUTPUT_DIR }}\arm64\${{ env.APP_NAME }}-windows-arm64.zip
273+
path: ${{ env.OUTPUT_DIR }}\amd64\${{ env.APP_NAME }}-windows-amd64.zip
300274

301275
- name: Upload Release Asset for windows/amd64
302276
uses: actions/upload-release-asset@v1
@@ -308,13 +282,4 @@ jobs:
308282
asset_name: ${{ env.APP_NAME }}-windows-amd64.zip
309283
asset_content_type: application/zip
310284

311-
- name: Upload Release Asset for windows/arm64
312-
uses: actions/upload-release-asset@v1
313-
env:
314-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
315-
with:
316-
upload_url: ${{ needs.create_release.outputs.upload_url }}
317-
asset_path: ${{ env.OUTPUT_DIR }}\arm64\${{ env.APP_NAME }}-windows-arm64.zip
318-
asset_name: ${{ env.APP_NAME }}-windows-arm64.zip
319-
asset_content_type: application/zip
320285

0 commit comments

Comments
 (0)