diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1d43ca7..8fbbe3e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -6,7 +6,7 @@ on: - main jobs: - run-tests: + build: runs-on: ubuntu-latest steps: - name: Checkout @@ -27,5 +27,8 @@ jobs: - name: Go Mod Download run: go mod download - - name: Go Build - run: go build -o k8s-parallel-exec + - name: Go Build amd64 + run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o k8s-parallel-exec-amd64 + + - name: Go Build arm64 + run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o k8s-parallel-exec-arm64 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59e46e4..eeb97fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - published jobs: - build: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -26,12 +26,15 @@ jobs: - name: Go Mod Download run: go mod download - - name: Go Build - run: go build -o k8s-parallel-exec + - name: Go Build amd64 + run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o k8s-parallel-exec-amd64 + + - name: Go Build arm64 + run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o k8s-parallel-exec-arm64 - name: Publish k8s-parallel-exec to assets uses: skx/github-action-publish-binaries@release-2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: './k8s-parallel-exec' + args: './k8s-parallel-exec-*'