Skip to content

Commit

Permalink
docker-coq for 8.14
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog committed Sep 22, 2021
1 parent cf20f68 commit 65cd4ee
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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:
- v8.14
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.14'
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-aac-tactics.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
19 changes: 17 additions & 2 deletions .github/workflows/nix-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
branches:
- v8.14
pull_request:
branches:
- '**'
paths:
- .github/workflows/**
pull_request_target:

jobs:
build:
Expand All @@ -19,6 +20,18 @@ jobs:
- 'coq = "v8.14"'
fail-fast: false
steps:
- name: Determine which ref to test
run: |
if [[ ${{ github.event_name }} =~ "pull_request" ]]; then
merge_commit=$(git ls-remote ${{ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge | cut -f1)
if [ -z "$merge_commit" ]; then
echo "tested_ref=refs/pull/${{ github.event.number }}/head" >> $GITHUB_ENV
else
echo "tested_ref=refs/pull/${{ github.event.number }}/merge" >> $GITHUB_ENV
fi
else
echo "tested_ref=${{ github.ref }}" >> $GITHUB_ENV
fi
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
Expand All @@ -33,5 +46,7 @@ jobs:
with:
name: math-comp
- uses: actions/checkout@v2
with:
ref: ${{ env.tested_ref }}
- run: >
nix-build https://coq.inria.fr/nix/toolbox --argstr job aac-tactics --arg override '{ ${{ matrix.overrides }}; aac-tactics = 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 @@ -4,12 +4,16 @@ Follow the instructions on https://github.com/coq-community/templates to regener
--->
# AAC Tactics

[![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]
[![DOI][doi-shield]][doi-link]

[docker-action-shield]: https://github.com/coq-community/aac-tactics/workflows/Docker%20CI/badge.svg?branch=v8.14
[docker-action-link]: https://github.com/coq-community/aac-tactics/actions?query=workflow:"Docker%20CI"

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

Expand Down
2 changes: 1 addition & 1 deletion meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ supported_ocaml_versions:
opam: '{>= "4.05.0"}'

tested_coq_nix_versions:
- coq_version: v8.14
- coq_version: 'v8.14'

tested_coq_opam_versions:
- version: '8.14'
Expand Down

0 comments on commit 65cd4ee

Please sign in to comment.