Strengthen Cue a bit
This commit is contained in:
parent
bb1334d82f
commit
d801018f23
33
.github/workflows/ci.cue
vendored
33
.github/workflows/ci.cue
vendored
@ -18,15 +18,18 @@ _versions: {
|
|||||||
page_build?: #Branches
|
page_build?: #Branches
|
||||||
}
|
}
|
||||||
|
|
||||||
#Action: "actions/checkout@v2" | "actions/setup-beam@v1"
|
#Action: "actions/checkout@v2" | "erlef/setup-beam@v1"
|
||||||
#Steps: {
|
#Uses : {
|
||||||
uses: #Action
|
uses: #Action
|
||||||
with:
|
with?: {
|
||||||
_: string
|
...
|
||||||
} | {
|
}
|
||||||
name: string
|
|
||||||
run: string
|
|
||||||
}
|
}
|
||||||
|
#Run: {
|
||||||
|
name: string
|
||||||
|
run: string
|
||||||
|
}
|
||||||
|
#Steps: #Uses | #Run
|
||||||
|
|
||||||
#OS_Version: "ubuntu-latest" | "macos-latest" | "windows_latest"
|
#OS_Version: "ubuntu-latest" | "macos-latest" | "windows_latest"
|
||||||
|
|
||||||
@ -38,7 +41,7 @@ _versions: {
|
|||||||
otp_vsn: [...string]
|
otp_vsn: [...string]
|
||||||
os: [...#OS_Version]
|
os: [...#OS_Version]
|
||||||
}
|
}
|
||||||
steps: [#Steps, ...]
|
steps: [...#Steps]
|
||||||
}
|
}
|
||||||
|
|
||||||
name: #Name & "build"
|
name: #Name & "build"
|
||||||
@ -61,21 +64,23 @@ jobs: #Jobs & {
|
|||||||
os: ["ubuntu-latest"]
|
os: ["ubuntu-latest"]
|
||||||
}
|
}
|
||||||
steps: [
|
steps: [
|
||||||
{uses: "actions/checkout@v2"},
|
|
||||||
{
|
{
|
||||||
name: "Update apt-get database"
|
uses: "actions/checkout@v2"
|
||||||
run: "apt-get update"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
uses: "actions/setup-beam@v1"
|
name: "Update apt-get database"
|
||||||
|
run: "sudo apt-get update"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
uses: "erlef/setup-beam@v1"
|
||||||
with: {
|
with: {
|
||||||
"otp-version": "${{matrix.otp_vsn}}"
|
"otp-version": "${{matrix.otp_vsn}}"
|
||||||
"rebar3-version": _versions.rebar3
|
"rebar3-version": _versions.rebar3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Install libsodium"
|
name: "Install libsodium"
|
||||||
run: "apt-get install -y libsodium-dev"
|
run: "sudo apt-get install -y libsodium-dev"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Compile source code"
|
name: "Compile source code"
|
||||||
|
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -20,7 +20,6 @@ jobs:
|
|||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with: {}
|
|
||||||
- name: Update apt-get database
|
- name: Update apt-get database
|
||||||
run: sudo apt-get update
|
run: sudo apt-get update
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user