Reorder build a bit

This commit is contained in:
Jesper Louis Andersen 2021-06-19 12:26:52 +02:00
parent a271797641
commit 756c222877
2 changed files with 43 additions and 40 deletions

View File

@ -7,6 +7,8 @@ _versions: {
rebar3: "3.16.1"
}
_branch: "master"
#Name: string
#Branches: branches: [...string]
#Tags: tags: [...string]
@ -30,7 +32,7 @@ _versions: {
}
#Steps: #Uses | #Run
#OS_Version: "ubuntu-latest" | "macos-latest" | "windows_latest"
#OS_Version: *"ubuntu-latest" | "macos-latest" | "windows_latest"
#Jobs: ci: {
name: string
@ -46,28 +48,26 @@ _versions: {
name: #Name & "build"
on: #On & {
push: branches: [
"master",
_branch,
]
pull_request: branches: [
"master",
_branch,
]
}
jobs: #Jobs & {
ci: {
jobs: #Jobs
jobs: ci: {
name: "Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}"
"runs-on": "${{matrix.os}}"
strategy: matrix: {
otp_vsn: _versions.all
os: ["ubuntu-latest"]
}
steps: [
}
jobs: ci: steps:
[
{
uses: "actions/checkout@v2"
},
{
name: "Update apt-get database"
run: "sudo apt-get update"
},
{
uses: "erlef/setup-beam@v1"
with: {
@ -75,6 +75,10 @@ jobs: #Jobs & {
"rebar3-version": _versions.rebar3
}
},
{
name: "Update apt-get database"
run: "sudo apt-get update"
},
{
name: "Install libsodium"
run: "sudo apt-get install -y libsodium-dev"
@ -87,4 +91,3 @@ jobs: #Jobs & {
name: "Run the tests"
run: "make tests"
}]
}}

View File

@ -20,12 +20,12 @@ jobs:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update apt-get database
run: sudo apt-get update
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_vsn}}
rebar3-version: 3.16.1
- name: Update apt-get database
run: sudo apt-get update
- name: Install libsodium
run: sudo apt-get install -y libsodium-dev
- name: Compile source code