Skip to content

Commit

Permalink
update meta.yml and regenerate CI boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog committed Oct 1, 2021
1 parent 7102507 commit d5da567
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 31 deletions.
File renamed without changes.
52 changes: 52 additions & 0 deletions .github/workflows/nix-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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:
- v8.13
pull_request:
paths:
- .github/workflows/**
pull_request_target:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
overrides:
- 'coq = "8.13"'
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
- 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
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") ./.; }'
30 changes: 0 additions & 30 deletions .github/workflows/nix-ci.yml

This file was deleted.

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:
- version_or_url: https://github.com/coq/coq-on-cachix/tarball/v8.13
- coq_version: '8.13'

tested_coq_opam_versions:
- version: '8.13'
Expand Down

0 comments on commit d5da567

Please sign in to comment.