File tree Expand file tree Collapse file tree
StrataTest/DDM/Integration/Java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,14 +3,12 @@ name: Deploy Documentation
33on :
44 push :
55 branches : [main]
6- pull_request :
7- branches : [main]
8- workflow_dispatch :
96
107jobs :
118 deploy_doc :
129 name : Deploy documentation
1310 runs-on : ubuntu-latest
11+ environment : github-pages
1412 permissions :
1513 contents : read
1614 pages : write
2523 - name : Build API documentation
2624 run : lake build Strata:docs
2725 working-directory : docs/api
28- - name : Debug API docs location
29- run : |
30- echo "Listing docs/api/.lake/build/doc:"
31- ls -la docs/api/.lake/build/doc || echo "Not found at docs/api/.lake/build/doc"
32- find docs/api -name "*.html" -type f | head -20 || echo "No HTML files found"
3326 - name : Build documentation
3427 run : ./generate.sh
3528 working-directory : docs/verso
4538 with :
4639 path : docs/verso/_out
4740 - name : Deploy to GitHub Pages
48- uses : actions/deploy-pages@v4
41+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -307,9 +307,7 @@ elab "#testRoundtrip" : command => do
307307 let some simple := state.loaded.dialects["Simple" ]?
308308 | Lean.logError "Simple dialect not found" ; return
309309 let dm := Strata.DialectMap.ofList! [Strata.initDialect, simple]
310- let srcFile := System.FilePath.mk (← Lean.getFileName)
311- let testdataDir := srcFile.parent.get! / "testdata"
312- let ionBytes ← IO.FS.readBinFile (testdataDir / "comprehensive.ion" )
310+ let ionBytes ← IO.FS.readBinFile "StrataTest/DDM/Integration/Java/testdata/comprehensive.ion"
313311 match Strata.Program.fileFromIon dm "Simple" ionBytes with
314312 | .error e => Lean.logError s! "Roundtrip test failed: { e} "
315313 | .ok prog =>
@@ -330,9 +328,7 @@ elab "#testRoundtripFiles" : command => do
330328 let some simple := state.loaded.dialects["Simple" ]?
331329 | Lean.logError "Simple dialect not found" ; return
332330 let dm := Strata.DialectMap.ofList! [Strata.initDialect, simple]
333- let srcFile := System.FilePath.mk (← Lean.getFileName)
334- let testdataDir := srcFile.parent.get! / "testdata"
335- let ionBytes ← IO.FS.readBinFile (testdataDir / "comprehensive-files.ion" )
331+ let ionBytes ← IO.FS.readBinFile "StrataTest/DDM/Integration/Java/testdata/comprehensive-files.ion"
336332 match Strata.Program.filesFromIon dm ionBytes with
337333 | .error e => Lean.logError s! "Roundtrip files test failed: { e} "
338334 | .ok files =>
You can’t perform that action at this time.
0 commit comments