-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hplt-project/singleton-scanner
Experiment: count small batch of ngrams at a time
- Loading branch information
Showing
12 changed files
with
295 additions
and
104 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,2 @@ | ||
/data | ||
/build |
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,38 @@ | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: install dependencies | ||
run: |- | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
python3 \ | ||
libboost-program-options-dev \ | ||
libboost-test-dev \ | ||
libicu-dev \ | ||
zlib1g-dev \ | ||
cmake \ | ||
build-essential | ||
- name: cmake | ||
run: |- | ||
mkdir -p build | ||
cd build | ||
cmake -L .. \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DCOMPILE_TESTS=On | ||
- name: build | ||
working-directory: build | ||
run: make -j2 | ||
- name: run unit tests | ||
working-directory: build | ||
run: make test | ||
- name: run end-to-end tests | ||
working-directory: tests/docalign | ||
run: PATH=../../build/bin:$PATH ./run.sh |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/data | ||
/data* | ||
/tests/docalign/out.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:latest as builder | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libboost-program-options-dev \ | ||
libboost-test-dev \ | ||
libicu-dev \ | ||
zlib1g-dev \ | ||
cmake \ | ||
build-essential | ||
|
||
COPY . /root/ | ||
|
||
RUN mkdir /root/build \ | ||
&& cd /root/build \ | ||
&& cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
&& make -j docalign docjoin | ||
|
||
FROM ubuntu:latest as runner | ||
COPY --from=builder /root/build/bin/* /usr/local/bin/ |
Oops, something went wrong.