Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Nix CI setup. #29

Merged
merged 3 commits into from
Aug 16, 2021
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
41 changes: 41 additions & 0 deletions .github/workflows/nix-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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:
schedule:
- cron: '20 4 * * *'
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
overrides:
- 'coq = "master"; mathcomp = "master"'
- 'coq = "v8.14"; mathcomp = "master"'
- 'coq = "8.13"'
fail-fast: false
steps:
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- uses: cachix/cachix-action@v8
with:
name: coq
- uses: cachix/cachix-action@v8
with:
name: coq-community
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: cachix/cachix-action@v8
with:
name: math-comp
- uses: actions/checkout@v2
- run: >
nix-build https://coq.inria.fr/nix/toolbox --argstr job reglang --arg override '{ ${{ matrix.overrides }}; reglang = builtins.filterSource (path: _: baseNameOf path != ".git") ./.; }'
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Follow the instructions on https://github.com/coq-community/templates to regener
# Regular Language Representations in Coq

[![Docker CI][docker-action-shield]][docker-action-link]
[![Nix CI][nix-action-shield]][nix-action-link]
[![Contributing][contributing-shield]][contributing-link]
[![Code of Conduct][conduct-shield]][conduct-link]
[![Zulip][zulip-shield]][zulip-link]
Expand All @@ -14,6 +15,9 @@ Follow the instructions on https://github.com/coq-community/templates to regener
[docker-action-shield]: https://github.com/coq-community/reglang/workflows/Docker%20CI/badge.svg?branch=master
[docker-action-link]: https://github.com/coq-community/reglang/actions?query=workflow:"Docker%20CI"

[nix-action-shield]: https://github.com/coq-community/reglang/workflows/Nix%20CI/badge.svg?branch=master
[nix-action-link]: https://github.com/coq-community/reglang/actions?query=workflow:"Nix%20CI"

[contributing-shield]: https://img.shields.io/badge/contributions-welcome-%23f7931e.svg
[contributing-link]: https://github.com/coq-community/manifesto/blob/master/CONTRIBUTING.md

Expand Down
4 changes: 2 additions & 2 deletions coq-reglang.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ automata (deterministic, nondeterministic, one-way, two-way),
regular expressions, and the logic WS1S. It also contains various
decidability results and closure properties of regular languages."""

build: [make "-j%{jobs}%" ]
install: [make "install"]
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"dune" {>= "2.5"}
"coq" {(>= "8.10" & < "8.15~") | (= "dev")}
"coq-mathcomp-ssreflect" {(>= "1.9" & < "1.13~") | (= "dev")}
]
Expand Down
29 changes: 0 additions & 29 deletions default.nix

This file was deleted.

10 changes: 8 additions & 2 deletions meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ shortname: reglang
organization: coq-community
community: true
action: true
nix: true
coqdoc: true
dune: false
doi: 10.1007/s10817-018-9460-x
Expand Down Expand Up @@ -54,12 +55,17 @@ dependencies:
- opam:
name: coq-mathcomp-ssreflect
version: '{(>= "1.9" & < "1.13~") | (= "dev")}'
nix: ssreflect
description: |-
[MathComp](https://math-comp.github.io) 1.9.0 or later (`ssreflect` suffices)

tested_coq_nix_versions:
- version_or_url: https://github.com/coq/coq-on-cachix/tarball/master
- coq_version: 'master'
extra_dev_dependencies:
- nix_name: mathcomp
- coq_version: 'v8.14'
extra_dev_dependencies:
- nix_name: mathcomp
- coq_version: '8.13'

tested_coq_opam_versions:
- version: 'coq-dev'
Expand Down