mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Add docker CI
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
e88662bb52
commit
99a7b55fef
1 changed files with 39 additions and 0 deletions
39
.github/workflows/docker.yml
vendored
Normal file
39
.github/workflows/docker.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
name: Build in docker
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '1.30'
|
||||||
|
- 'i686-cross'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
env:
|
||||||
|
#OCANREN_STATS: yes
|
||||||
|
# enabling stats required extra link library
|
||||||
|
OCANREN_DOCS: yes
|
||||||
|
OPAMROOT: /home/user/.opam
|
||||||
|
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container:
|
||||||
|
image: kakadu18/ocaml:lama
|
||||||
|
options: --user user
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- run: opam --version
|
||||||
|
- run: opam exec -- ocamlopt --version
|
||||||
|
|
||||||
|
- name: Cancel Previous Runs
|
||||||
|
uses: styfle/cancel-workflow-action@0.11.0
|
||||||
|
with:
|
||||||
|
access_token: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- run: opam install . --yes --deps-only --with-test --with-doc
|
||||||
|
|
||||||
|
- name: List installed packages
|
||||||
|
run: opam list
|
||||||
|
|
||||||
|
- run: opam exec -- dune build --profile=release
|
||||||
|
- run: opam exec -- dune test regression/ stdlib/regression
|
||||||
Loading…
Add table
Add a link
Reference in a new issue