Skip to content

Commit

Permalink
add x86 macos and windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
clbx committed Jul 25, 2024
1 parent e1ccbb1 commit 24bb6e0
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: string

jobs:
build-darwin:
build-darwin-arm:
runs-on: macos-latest
steps:
- name: Set up Go
Expand All @@ -28,11 +28,37 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kubectl-browse-pvc-darwin
name: kubectl-browse-pvc-darwin-arm
path: |
./kubectl-browse-pvc
LICENSE
build-linux:
build-darwin-x86_64:
runs-on: macos-13
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.22.0"

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -ldflags "-X main.Version=${{ inputs.version }}" -o kubectl-browse-pvc .

- name: Fix permissions
run: chmod +x ./kubectl-browse-pvc

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kubectl-browse-pvc-darwin-x86_64
path: |
./kubectl-browse-pvc
LICENSE
build-linux-x86_64:
runs-on: ubuntu-latest
steps:
- name: Set up Go
Expand All @@ -52,7 +78,32 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kubectl-browse-pvc-linux
name: kubectl-browse-pvc-linux-x86_64
path: |
./kubectl-browse-pvc
LICENSE
build-windows-x86_64:
runs-on: windows-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.22.0"

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -ldflags "-X main.Version=${GITHUB_SHA::7}" -o kubectl-browse-pvc .

- name: Fix permissions
run: chmod +x ./kubectl-browse-pvc

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kubectl-browse-pvc-linux-x86_64
path: |
./kubectl-browse-pvc
LICENSE

0 comments on commit 24bb6e0

Please sign in to comment.