-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5982d90
commit 6ae8bad
Showing
9 changed files
with
474 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file was generated from `meta.yml`, please do not edit manually. | ||
# Follow the instructions on https://github.com/coq-community/templates to regenerate. | ||
name: Docker CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
# the OS must be GNU/Linux to be able to use the docker-coq-action | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: | ||
- 'coqorg/coq:8.11' | ||
- 'coqorg/coq:8.12' | ||
- 'coqorg/coq:8.13' | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coq-community/docker-coq-action@v1 | ||
with: | ||
opam_file: 'coq-hierarchy-builder.opam' | ||
custom_image: ${{ matrix.image }} | ||
|
||
# See also: | ||
# https://github.com/coq-community/docker-coq-action#readme | ||
# https://github.com/erikmd/docker-coq-github-action-demo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# This file was generated from `meta.yml`, please do not edit manually. | ||
# Follow the instructions on https://github.com/coq-community/templates to regenerate. | ||
name: Nix CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
prerequisites: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
# Name of a cachix cache to pull/substitute | ||
name: math-comp | ||
extraPullNames: coq | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Cache Nix Store | ||
uses: actions/[email protected] | ||
id: cache-nix | ||
with: | ||
path: nix-store.nar | ||
key: nix-${{ runner.os }}-${{ github.sha }} | ||
restore-keys: | | ||
nix-${{ runner.os }}- | ||
- name: Import Nix Store | ||
if: steps.cache-nix.outputs.cache-hit | ||
run: nix-store --import < nix-store.nar | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build | ||
run: nix-build --arg ci true --arg ci-step 0 | ||
- name: Compute Closure | ||
run: nix-build --arg ci true --arg ci-step 0 | xargs nix path-info -r | tee closure.txt | ||
- name: Export Nix Store | ||
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar | ||
|
||
main: | ||
runs-on: ubuntu-latest | ||
needs: prerequisites | ||
|
||
steps: | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
# Name of a cachix cache to pull/substitute | ||
name: math-comp | ||
extraPullNames: coq | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Cache Nix Store | ||
uses: actions/[email protected] | ||
id: cache-nix | ||
with: | ||
path: nix-store.nar | ||
key: nix-${{ runner.os }}-${{ github.sha }} | ||
restore-keys: | | ||
nix-${{ runner.os }}- | ||
- name: Import Nix Store | ||
if: steps.cache-nix.outputs.cache-hit | ||
run: nix-store --import < nix-store.nar | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build | ||
run: nix-build --arg ci true --arg ci-step 1 | ||
- name: Compute Closure | ||
run: nix-build --arg ci true --arg ci-step 1 | xargs nix path-info -r | tee closure.txt | ||
- name: Export Nix Store | ||
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar | ||
|
||
CI: | ||
runs-on: ubuntu-latest | ||
needs: main | ||
|
||
steps: | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
# Name of a cachix cache to pull/substitute | ||
name: math-comp | ||
extraPullNames: coq | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Cache Nix Store | ||
uses: actions/[email protected] | ||
id: cache-nix | ||
with: | ||
path: nix-store.nar | ||
key: nix-${{ runner.os }}-${{ github.sha }} | ||
restore-keys: | | ||
nix-${{ runner.os }}- | ||
- name: Import Nix Store | ||
if: steps.cache-nix.outputs.cache-hit | ||
run: nix-store --import < nix-store.nar | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build | ||
run: nix-build --arg ci true --arg ci-step 2 | ||
- name: Compute Closure | ||
run: nix-build --arg ci true --arg ci-step 2 | xargs nix path-info -r | tee closure.txt | ||
- name: Export Nix Store | ||
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
format = "1.0.0"; | ||
coq-attribute = "hiearchy-builder"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.