Skip to content

Commit

Permalink
Merge pull request #2 from SnO2WMaN/add-ci
Browse files Browse the repository at this point in the history
Add workflow to check build successfully
  • Loading branch information
iehality authored Nov 21, 2023
2 parents 4d42800 + 4788129 commit ab047c4
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml}]
indent_style = space
indent_size = 2
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- master
pull_request:

# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
./lake-packages
key: deps-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}
restore-keys: |
deps-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}
- name: Cache build
uses: actions/cache@v3
with:
path: |
./build
key: build-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ github.sha }}
restore-keys: |
build-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}
- name: Build
run: |
lake exe cache get
lake build
1 change: 0 additions & 1 deletion Logic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Logic.Vorspiel.Order
import Logic.Vorspiel.Meta

import Logic.Logic.LogicSymbol
import Logic.Logic.Logic

-- Propositional

Expand Down
4 changes: 2 additions & 2 deletions Logic/Propositional/Basic/Formula.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logic.Logic.Logic
import Logic.Logic.LogicSymbol

namespace LO

Expand Down Expand Up @@ -40,4 +40,4 @@ end Formula

end Propositional

end LO
end LO

0 comments on commit ab047c4

Please sign in to comment.