Skip to content

Commit

Permalink
ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Jan 6, 2024
1 parent b8e7366 commit 310c2d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
cd build
cmake ..
make
ls
- name: Cache.
uses: actions/cache@v2
Expand Down
8 changes: 7 additions & 1 deletion src/tools/md4c.cy
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
-- ./src/tools/cbindgen.cy -o src/tools/md4c.cy ~/repos/md4c/src/md4c.h -I/opt/homebrew/Cellar/llvm/17.0.5/include -libpath libmd4c.dylib -stripPrefix MD

var Root.libPath = switch os.system:
case 'linux' => 'libmd4c.so'
case 'windows' => 'md4c.dll'
case 'macos' => 'libmd4c.dylib'
else => throw error.Unsupported

-- CBINDGEN MARKER
-- Code below is generated by cbindgen.cy
type CHAR int
Expand Down Expand Up @@ -158,7 +164,7 @@ func load():
ffi.cbind(SPAN_WIKILINK_S, [ATTRIBUTE])
ffi.cbind(PARSER_S, [.uint, .uint, .voidPtr, .voidPtr, .voidPtr, .voidPtr, .voidPtr, .voidPtr, .voidPtr])
ffi.cfunc('md_parse', [.voidPtr, .uint, .voidPtr, .voidPtr], .int)
my lib = ffi.bindLib('libmd4c.dylib', [genMap: true])
my lib = ffi.bindLib(libPath, [genMap: true])
md_parse = lib.md_parse
return lib

Expand Down

0 comments on commit 310c2d1

Please sign in to comment.