Skip to content

Commit

Permalink
Fix hunspell caching
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Feb 6, 2024
1 parent 3b5404c commit ecfa8ed
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,12 @@ jobs:
uses: actions/cache@v2
with:
path: /usr/local/bin/unmunch
key: hunspell-${{ hashFiles("${{ env.HUNSPELL_DIR }}/**") }}
key: hunspell-${{ hashFiles("lt/hunspell/**") }}
id: hunspell-cache

- if: steps.hunspell-cache.outputs.cache-hit != 'true'
run: |
# Checkout Hunspell code
git clone https://github.com/hunspell/hunspell ${HUNSPELL_DIR}
# Compilation steps
cd ${HUNSPELL_DIR}
sudo apt-get install autoconf automake autopoint libtool
autoreconf -vfi
Expand All @@ -102,12 +100,21 @@ jobs:
repository: languagetool-org/languagetool
path: ${{ env.LT_HOME }}
token: ${{ secrets.LT_OS_TOKEN }}
# TODO: remove this once the new tokenisation branch is merged into master!
ref: pt/dict/new_tokenisation

- name: Build LT
- name: Cache LT Build
uses: actions/cache@v2
with:
path: |
${{ env.LT_HOME }}/target
~/.m2
key: lt-build-${{ hashFiles('**/pom.xml', '**/*.java') }}
id: lt-cache

- if: steps.lt-cache.outputs.cache-hit != 'true'
run: |
mvn clean install -DskipTests
working-directory: ${{ env.LT_HOME }}
run: mvn clean install -DskipTests

- name: Build POS tagging dictionary
working-directory: ${{ env.PT_DICT_HOME }}
Expand Down

0 comments on commit ecfa8ed

Please sign in to comment.