CI (updated dependencies) #965
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
name: CI (updated dependencies) | |
on: | |
schedule: | |
# every day at 8am UTC (3am EST) | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
name: "update dependencies (dev)" | |
runs-on: ubuntu-22.04 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: "Update dependencies" | |
run: | | |
git submodule update --remote | |
- uses: coq-community/docker-coq-action@v1 | |
with: | |
coq_version: dev | |
ocaml_version: "4.13-flambda" | |
install: | | |
startGroup Install dependencies | |
sudo apt-get update | |
sudo apt-get install -y python3 python3-pip sqlite3 | |
pip3 install -r etc/requirements.txt | |
endGroup | |
before_script: | | |
sudo chown -R coq:coq . # workaround a permission issue | |
script: | | |
startGroup Build | |
make -j2 -k ci | |
endGroup | |
uninstall: | | |
make clean | |
- name: Revert permissions | |
# to avoid a warning at cleanup time | |
if: ${{ always() }} | |
run: sudo chown -R 1001:116 . |