diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e30340..b7397f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 }}