Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jvalkeal committed Aug 26, 2024
1 parent 158cc8e commit 3a81965
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
os: ubuntu-latest
- nickname: macos jdk17
java: 17
os: macos-latest
os: macos-12
- nickname: windows jdk17
java: 17
os: windows-latest
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate-languages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ for VALUE in $VALUES;
jextract --header-class-name TreeSitter$LANGUAGENAME --output $TARGETMODULEPATH/src/main/java -t org.springframework.shell.treesitter.language.$LANGUAGEID.ts $TARGETMODULEPATH/src/ts/tree-sitter-$LANGUAGEID.h
mkdir -p $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Linux/x86_64
mkdir -p $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Windows/x86_64
mkdir -p $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Mac/x86_64
ZIGFILES=$REPOPATH/src/parser.c
if [ -f $REPOPATH/src/scanner.c ]; then
ZIGFILES="$ZIGFILES $REPOPATH/src/scanner.c"
Expand All @@ -67,5 +68,6 @@ for VALUE in $VALUES;
zig cc -g0 -O2 -shared -target x86_64-windows -std=c11 -I $REPOPATH/src -o $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Windows/x86_64/tree-sitter-$LANGUAGEID.dll $ZIGFILES
rm $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Windows/x86_64/*.pdb
rm $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Windows/x86_64/*.lib
zig cc -g0 -O2 -shared -target x86_64-macos -std=c11 -I $REPOPATH/src -o $TARGETMODULEPATH/src/main/resources/org/springframework/shell/treesitter/Mac/x86_64/libtree-sitter-$LANGUAGEID.jnilib $ZIGFILES
done;

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 3a81965

Please sign in to comment.