Skip to content

Commit fe323a1

Browse files
authored
add CI actions for updating toolchain (#19)
* add CI actions * changed Qq dependency to point to stable branch * Change CI action from Seashwer/lean-update to leanprover-community/lean-update
1 parent 0ef2974 commit fe323a1

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2 # Specifies the version of the Dependabot configuration file format
2+
3+
updates:
4+
# Configuration for dependency updates
5+
- package-ecosystem: "github-actions" # Specifies the ecosystem to check for updates
6+
directory: "/" # Specifies the directory to check for dependencies; "/" means the root directory
7+
schedule:
8+
# Check for updates to GitHub Actions every month
9+
interval: "monthly"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Borrowed from the CI action of teorth/equational_theories
2+
3+
name: Update Dependencies
4+
5+
on:
6+
schedule: # Sets a schedule to trigger the workflow
7+
- cron: "0 8 */14 * *" # Every 14 days at 08:00 AM UTC (for more info on the cron syntax see https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule)
8+
workflow_dispatch: # Allows the workflow to be triggered manually via the GitHub interface
9+
10+
jobs:
11+
update_lean:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # Grants permission to push changes to the repository
15+
issues: write # Grants permission to create or update issues
16+
pull-requests: write # Grants permission to create or update pull requests
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Update project
21+
uses: leanprover-community/lean-update@main
22+
with:
23+
on_update_succeeds: pr # Create a pull request if the update succeeds
24+
on_update_fails: issue # Create an issue if the update fails
25+
legacy_update: true # Executes lake -R -Kenv=dev update instead of lake update.

lakefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defaultTargets = ["Iris", "IrisTest"]
55
[[require]]
66
name = "Qq"
77
scope = "leanprover-community"
8-
version = "git#v4.17.0"
8+
version = "git#stable"
99

1010
[[lean_lib]]
1111
name = "Iris"

0 commit comments

Comments
 (0)