Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ jobs:
lake exe graph
rm import_graph.dot

# - name: test algorithm
# id: test
# uses: liskin/gh-problem-matcher-wrap@v3
# with:
# linters: gcc
# run:
# lake test
- name: test algorithm
id: test
uses: liskin/gh-problem-matcher-wrap@v3
with:
linters: gcc
run:
lake test

- name: check for unused imports
id: shake
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ abbrev algorithmLeanOptions := #[
algorithmOnlyLinters.map fun s ↦ { s with name := `weak ++ s.name }

package algorithm where
testDriver := "AlgorithmTest"

lean_lib Mutable where
roots := #[`Mutable]
Expand All @@ -30,6 +31,9 @@ lean_lib Algorithm where
"-lstdc++"
]

lean_lib AlgorithmTest where
globs := #[.submodules `AlgorithmTest]

target ffi.o pkg : System.FilePath := do
let oFile := pkg.buildDir / "cpp" / "ffi.o"
let srcJob ← inputBinFile <| pkg.dir / "cpp" / "ffi.cpp"
Expand All @@ -40,7 +44,3 @@ extern_lib libleanffi pkg := do
let name := nameToStaticLib "leanffi"
let ffiO ← ffi.o.fetch
buildStaticLib (pkg.staticLibDir / name) #[ffiO]

-- @[test_driver]
-- lean_exe test where
-- srcDir := "scripts"
Loading