Skip to content

Commit

Permalink
Install pre-built jsonnet binary from a github release
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 5, 2024
1 parent 0a58482 commit 9f87dd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ jobs:
strategy:
fail-fast: false
matrix:
jsonnet-version: [latest]
jsonnet-version: ["0.20.0"]

steps:
- uses: actions/checkout@v4

# Based on https://github.com/zendesk/setup-jsonnet/blob/master/install-jsonnet.sh
# Based on https://github.com/grafana/grafonnet/blob/6ac1593ca787638da223380ff4a3fd0f96e953e1/.github/workflows/ci.yaml#L22-L28
- name: Install jsonnet (go-jsonnet)
run: |
go install "github.com/google/go-jsonnet/cmd/jsonnet@${{ matrix.jsonnet-version }}"
echo "$HOME/go/bin" >> "$GITHUB_PATH"
JSONNET_VERSION=${{ matrix.jsonnet-version }}
wget --quiet https://github.com/google/go-jsonnet/releases/download/v${JSONNET_VERSION}/go-jsonnet_${JSONNET_VERSION}_Linux_x86_64.tar.gz
tar --extract --file=go-jsonnet_${JSONNET_VERSION}_Linux_x86_64.tar.gz jsonnet
mv jsonnet "$HOME/.local/bin"
- run: jsonnet --version

Expand Down

0 comments on commit 9f87dd9

Please sign in to comment.