Skip to content

Commit

Permalink
fix: adds support for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
vpominchuk committed Oct 31, 2023
1 parent 28689f5 commit 3c19426
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
asset_name: wmetrics_win_x86.exe
asset_content_type: application/octet-stream

# Build for Linux 64
- name: Build Linux 64
# Build for Linux amd64
- name: Build Linux amd64
run: GOOS=linux GOARCH=amd64 ./build

- name: upload Linux 64 artifact
Expand All @@ -70,7 +70,21 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wmetrics
asset_name: wmetrics_linux_x64
asset_name: wmetrics_linux_amd64
asset_content_type: application/octet-stream

# Build for Linux arm64
- name: Build Linux arm64
run: GOOS=linux GOARCH=arm64 ./build

- name: upload Linux 64 artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wmetrics
asset_name: wmetrics_linux_arm64
asset_content_type: application/octet-stream

# Build for Linux 32
Expand All @@ -87,17 +101,31 @@ jobs:
asset_name: wmetrics_linux_x86
asset_content_type: application/octet-stream

# Build for macOS 64
# Build for macOS amd64
- name: Build Mac OS 64
run: GOOS=darwin GOARCH=amd64 ./build

- name: upload Mac OS 64 artifact
- name: upload Mac OS amd64 artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wmetrics
asset_name: wmetrics_macos_x64
asset_name: wmetrics_macos_amd64
asset_content_type: application/octet-stream

# Build for macOS arm64
- name: Build Mac OS arm64
run: GOOS=darwin GOARCH=arm64 ./build

- name: upload Mac OS 64 artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wmetrics
asset_name: wmetrics_macos_arm64
asset_content_type: application/octet-stream

0 comments on commit 3c19426

Please sign in to comment.