Skip to content

Commit

Permalink
internal/ci: install CUE as part of trybots
Browse files Browse the repository at this point in the history
For now use a hard-coded version, which will get updated later in this
stack to be driven by the top-level project configuration.

This also allows us to move away from a hard coded 'go run' verison of
CUE, instead relying simply on what is in the PATH.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Idf073cdc32eea6d808cb8301d00dc7d55923e48b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204119
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
myitcv committed Nov 18, 2024
1 parent 7165aaf commit 4d9ebaf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/trybot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
# Dump env for good measure
go env
- name: Install CUE
uses: cue-lang/[email protected]
with:
version: v0.11.0-rc.1
- id: go-mod-cache-dir
name: Get go mod cache directory
run: echo "dir=$(go env GOMODCACHE)" >> ${GITHUB_OUTPUT}
Expand Down
4 changes: 2 additions & 2 deletions internal/ci/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

package ci

//go:generate go run cuelang.org/go/cmd/cue@v0.10.0 cmd importjsonschema ./vendor
//go:generate go run cuelang.org/go/cmd/cue@v0.10.0 cmd gen
//go:generate cue cmd importjsonschema ./vendor
//go:generate cue cmd gen
8 changes: 8 additions & 0 deletions internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ workflows: trybot: _repo.bashWorkflow & {
steps: [
for v in _repo.checkoutCode {v},
for v in installGo {v},
// CUE setup
_installCUE,

for v in _setupGoActionsCaches {v},

Expand Down Expand Up @@ -85,3 +87,9 @@ workflows: trybot: _repo.bashWorkflow & {
]
}
}

_installCUE: json.#step & {
name: "Install CUE"
uses: "cue-lang/[email protected]"
with: version: "v0.11.0-rc.1"
}

0 comments on commit 4d9ebaf

Please sign in to comment.