Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ jobs:
- platform: ubuntu-latest
goos: linux
goarch: amd64
can_test: true
- platform: ubuntu-latest
goos: linux
goarch: arm64
can_test: false
- platform: windows-latest
goos: windows
goarch: amd64
can_test: true
- platform: windows-latest
goos: windows
goarch: arm64
can_test: false
- platform: macos-latest
goos: darwin
goarch: amd64
can_test: false
- platform: macos-latest
goos: darwin
goarch: arm64
can_test: true

runs-on: ${{ matrix.platform }}

Expand All @@ -47,6 +53,10 @@ jobs:

- name: Build codes
shell: bash
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: '0'
run: |
if [ "${{ matrix.goos }}" = "windows" ]; then
go build -o codes.exe ./cmd/codes
Expand All @@ -55,6 +65,7 @@ jobs:
fi

- name: Test
if: matrix.can_test
shell: bash
run: |
if [ "${{ matrix.goos }}" = "windows" ]; then
Expand Down