Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: docker CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -11,19 +11,6 @@ on:
branches: [ master ]

jobs:
nix:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v12
- uses: cachix/cachix-action@v8
with:
name: coq
- run: nix-build

opam:
runs-on: ubuntu-latest
strategy:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: nix CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
nix:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v12
- uses: cachix/cachix-action@v8
with:
name: math-comp
extraPullNames: coq
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build

nixci:
runs-on: ubuntu-latest
needs: nix

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v12
- uses: cachix/cachix-action@v8
with:
name: math-comp
extraPullNames: coq
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build --arg ci true
2 changes: 2 additions & 0 deletions .nix/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
select = "coq-8.13";
inputs."coq-8.13".coqPackages = {
coq.override.version = "8.13";
mathcomp.override.version = "gares:hierarchy-builder";
mathcomp-single.ci = true;
};
}
7 changes: 7 additions & 0 deletions .nix/coq-overlays/mathcomp-single/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ mathcomp, coq-elpi, hierarchy-builder, version ? null }:
(mathcomp.override {single = true;}).overrideAttrs (old: {
buildPhase = "make -j $(max_jobs) -C mathcomp ./algebra/ssralg.vo";
propagatedBuildInputs = old.propagatedBuildInputs ++
[ coq-elpi hierarchy-builder ];
installPhase = "echo NO INSTALL";
})