Move actions to their own file.

This commit is contained in:
Jesper Louis Andersen 2021-06-19 12:33:43 +02:00
parent 756c222877
commit 87f9270a6c
3 changed files with 40 additions and 1 deletions

View File

@ -1,3 +1,3 @@
all: all:
cue export --out yaml ci.cue > ci.yaml cue export --out yaml > ci.yaml

37
.github/workflows/actions.cue vendored Normal file
View File

@ -0,0 +1,37 @@
package actions
#Name: string
#Branches: branches: [...string]
#Tags: tags: [...string]
#On: {
push?: #Branches
pull_request?: #Branches
page_build?: #Branches
}
#Action: "actions/checkout@v2" | "erlef/setup-beam@v1"
#Uses: {
uses: #Action
with?: {
...
}
}
#Run: {
name: string
run: string
}
#Steps: #Uses | #Run
#OS_Version: *"ubuntu-latest" | "macos-latest" | "windows_latest"
#Jobs: ci: {
name: string
"runs-on": string
strategy:
matrix: {
otp_vsn: [...string]
os: [...#OS_Version]
}
steps: [...#Steps]
}

View File

@ -1,3 +1,5 @@
package actions
// Versions for simplicity // Versions for simplicity
_versions: { _versions: {
latest: ["24.0"] latest: ["24.0"]