Skip to content

Commit e9bc5b3

Browse files
committed
ci: always run make build
- set shell - setup jrsonnet - setup jsonnetfmt
1 parent 3624209 commit e9bc5b3

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,31 @@ jobs:
2727
version: ${{ github.event.inputs.version }}
2828
command: -h
2929

30+
- name: move crossplane cli
31+
run: "mkdir -p $TARGET_PATH && mv ./crossplane $TARGET_PATH"
32+
env:
33+
TARGET_PATH: "${{ github.workspace }}/bin"
34+
35+
- name: setup jsonnet-fmt
36+
run: |
37+
go install "github.com/google/go-jsonnet/cmd/[email protected]"
38+
echo "$HOME/go/bin" >> "$GITHUB_PATH"
39+
40+
- name: setup jrsonnet
41+
uses: Duologic/tanka-exporter-workflow/.github/actions/jrsonnet-install@main
42+
3043
- name: Build xpkg
31-
run: make build
44+
run: "make -B build"
45+
shell: bash
3246
env:
33-
CROSSPLANE: './crossplane'
47+
CROSSPLANE: '${{ github.workspace }}/bin/crossplane'
3448

3549
- name: Check if file changed
3650
id: changed
3751
uses: tj-actions/verify-changed-files@v20
3852
with:
3953
files: |
40-
!crossplane
54+
!bin
4155
4256
- name: No files changed
4357
if: "${{ steps.changed.outputs.files_changed == 'true' }}"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PROVIDER_VERSION:=0.21.0
33
JSONNET_BIN:=jrsonnet
44
CROSSPLANE?=crank
55
REGISTRY?=ghcr.io
6+
SHELL:=/bin/bash
67

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

0 commit comments

Comments
 (0)