Actions.
This commit is contained in:
parent
3d9cc841eb
commit
0b8abb95d5
3
.github/workflows/Makefile
vendored
Normal file
3
.github/workflows/Makefile
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
all:
|
||||||
|
cue export --out yaml ci.cue > ci.yaml
|
||||||
|
|
23
.github/workflows/ci.cue
vendored
Normal file
23
.github/workflows/ci.cue
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: "build"
|
||||||
|
on: {
|
||||||
|
push: branches: [
|
||||||
|
"master",
|
||||||
|
]
|
||||||
|
pull_request: branches: [
|
||||||
|
"master",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
jobs: ci: {
|
||||||
|
name: "Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}"
|
||||||
|
"runs-on": "${{matrix.os}}"
|
||||||
|
container: image: "erlang:${{matrix.otp_vsn}}"
|
||||||
|
strategy: matrix: {
|
||||||
|
otp_vsn: [18.3, 19.3, 20.3, 21.3, 22.3, 23.3, 24.0]
|
||||||
|
os: ["ubuntu-latest"]
|
||||||
|
}
|
||||||
|
steps: [
|
||||||
|
{uses: "actions/checkout@v2"},
|
||||||
|
{run: "sudo apt get instal libsodium-dev"},
|
||||||
|
{run: "make compile"},
|
||||||
|
{run: "make tests"}]
|
||||||
|
}
|
31
.github/workflows/ci.yaml
vendored
Normal file
31
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
container:
|
||||||
|
image: erlang:${{matrix.otp_vsn}}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
otp_vsn:
|
||||||
|
- 18.3
|
||||||
|
- 19.3
|
||||||
|
- 20.3
|
||||||
|
- 21.3
|
||||||
|
- 22.3
|
||||||
|
- 23.3
|
||||||
|
- 24.0
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: sudo apt get instal libsodium-dev
|
||||||
|
- run: make compile
|
||||||
|
- run: make tests
|
3
Makefile
3
Makefile
@ -5,6 +5,9 @@ RUN_EQC=erl -pa _build/default/lib/enacl/ebin -noshell -s enacl_eqc -s init stop
|
|||||||
compile:
|
compile:
|
||||||
$(REBAR) compile
|
$(REBAR) compile
|
||||||
|
|
||||||
|
.PHONY: tests
|
||||||
|
$(REBAR) ct
|
||||||
|
|
||||||
eqc_compile: compile
|
eqc_compile: compile
|
||||||
erlc -o _build/default/lib/enacl/ebin eqc_test/enacl_eqc.erl
|
erlc -o _build/default/lib/enacl/ebin eqc_test/enacl_eqc.erl
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user