Skip to content

Commit

Permalink
build clis on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Jul 8, 2024
1 parent a5d4ad3 commit d53726b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
run: |
nix develop --command test -z $(gofmt -l .)
build_and_test_nix:
name: Test and build
build_publish_images:
name: Test, build and publish images
needs: check_nix
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -83,3 +83,26 @@ jobs:
nix run ./#publish-kardinal-manager-container
nix run ./#publish-kardinal-cli-container
nix run ./#publish-redis-proxy-overlay-container
build_clis:
name: Test and build cross-compiled clis
needs: check_nix
runs-on: ubuntu-22.04
strategy:
matrix:
os: [linux, darwin, windows]
arch: [amd64, arm64]

steps:
- name: git checkout
uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Magic cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build Kardinal CLI images
run: |
nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths
4 changes: 1 addition & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:

build-and-publish-clis:
needs: release-please

runs-on: ubuntu-latest

runs-on: ubuntu-22.04
strategy:
matrix:
os: [linux, darwin, windows]
Expand Down

0 comments on commit d53726b

Please sign in to comment.