Skip to content

Commit

Permalink
ci: always run make build
Browse files Browse the repository at this point in the history
-  set shell
-  setup jrsonnet
-  setup jsonnetfmt
  • Loading branch information
Duologic committed Dec 2, 2024
1 parent 3624209 commit e9bc5b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,31 @@ jobs:
version: ${{ github.event.inputs.version }}
command: -h

- name: move crossplane cli
run: "mkdir -p $TARGET_PATH && mv ./crossplane $TARGET_PATH"
env:
TARGET_PATH: "${{ github.workspace }}/bin"

- name: setup jsonnet-fmt
run: |
go install "github.com/google/go-jsonnet/cmd/[email protected]"
echo "$HOME/go/bin" >> "$GITHUB_PATH"
- name: setup jrsonnet
uses: Duologic/tanka-exporter-workflow/.github/actions/jrsonnet-install@main

- name: Build xpkg
run: make build
run: "make -B build"
shell: bash
env:
CROSSPLANE: './crossplane'
CROSSPLANE: '${{ github.workspace }}/bin/crossplane'

- name: Check if file changed
id: changed
uses: tj-actions/verify-changed-files@v20
with:
files: |
!crossplane
!bin
- name: No files changed
if: "${{ steps.changed.outputs.files_changed == 'true' }}"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROVIDER_VERSION:=0.21.0
JSONNET_BIN:=jrsonnet
CROSSPLANE?=crank
REGISTRY?=ghcr.io
SHELL:=/bin/bash

VENDOR_DEPTHS:=$(shell find generator/vendor -type f)

Expand Down

0 comments on commit e9bc5b3

Please sign in to comment.