Added ubuntu long build

This commit is contained in:
Denis Merigoux 2022-02-03 19:45:52 +01:00
parent 1dae73b020
commit 1b4ce93eae
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3
3 changed files with 56 additions and 31 deletions

View File

@ -1,30 +0,0 @@
name: FullBuildCI
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build-nix-21-05:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v14.1
with:
nix_path: nixpkgs=channel:nixos-21.05
- run: nix-shell -p nix-info --run "nix-info -m"
- run: nix-build release.nix
- run: nix-shell --run "echo OK"
build-nix-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v14.1
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell -p nix-info --run "nix-info -m"
- run: nix-build release.nix
- run: nix-shell --run "echo OK"

55
.github/workflows/run-builds.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: Builds
on:
push:
branches: [master]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up OCaml
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: 4.11.x
dune-cache: true
- name: Install Python dependencies
run: |
sudo apt-get update && sudo apt-get install python3-dev python3-setuptools python3-pygments man2html rsync colordiff libmpc-dev
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install virtualenv
sudo make pygments
./french_law/python/setup_env.sh
- name: Install OCaml dependencies
run: |
opam install . --deps-only --with-doc --with-test
- name: Make build
run: |
OCAMLRUNPARAM=b opam exec -- make build
build-nix-21-05:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v14.1
with:
nix_path: nixpkgs=channel:nixos-21.05
- run: nix-shell -p nix-info --run "nix-info -m"
- run: nix-build release.nix
- run: nix-shell --run "echo OK"
build-nix-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v14.1
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell -p nix-info --run "nix-info -m"
- run: nix-build release.nix
- run: nix-shell --run "echo OK"

View File

@ -1,4 +1,4 @@
name: RoutineCI
name: Harness
on:
push