Skip to content

Commit

Permalink
Merge pull request #52 from 4ever2/ci-fixes
Browse files Browse the repository at this point in the history
Adapt CI to upcoming GitHub actions changes
  • Loading branch information
4ever2 authored Jan 22, 2025
2 parents 9114e44 + 7f1c104 commit b5b89d6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/opam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,24 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Concurrency group used to cancel old runs
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}"
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

- name: Try to restore opam cache
id: opam-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: "~/.opam"
key: opam-${{github.base_ref}}-${{github.ref}}
Expand All @@ -35,16 +40,15 @@ jobs:
- name: Install OCaml
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.14.1
ocaml-version: 4.14.2

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

# Runs a set of commands using the runners shell
- name: Build
run: |
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq.8.18.0 coq-equations.1.3+8.18 coq-mathcomp-ssreflect.2.1.0 coq-mathcomp-analysis.1.0.0 coq-extructures.0.4.0 coq-deriving.0.2.0
opam exec -- make -j4

0 comments on commit b5b89d6

Please sign in to comment.