-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed loading coccoc native lib thread safety issue - Added CI
- Loading branch information
Showing
5 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
entry: | ||
- { version: 11, distribution: 'adopt' } | ||
- { version: 17, distribution: 'adopt' } | ||
steps: | ||
- name: Checkout analysis-vietnamese | ||
uses: actions/checkout@v3 | ||
- name: Check Out coccoc-tokenizer | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: coccoc/coccoc-tokenizer | ||
path: coccoc-tokenizer | ||
- name: Build coccoc-tokenizer | ||
working-directory: ./coccoc-tokenizer | ||
run: | | ||
mkdir build && cd build | ||
cmake -DBUILD_JAVA=1 .. | ||
sudo make install | ||
- name: Set up JDK ${{ matrix.entry.version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.entry.version }} | ||
distribution: ${{ matrix.entry.distribution }} | ||
cache: maven | ||
- name: Build and Test | ||
run: | | ||
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | ||
mvn --batch-mode test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters