Skip to content

Commit

Permalink
Remove hunspell caching step
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Feb 6, 2024
1 parent f282072 commit edfcd92
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,22 @@ jobs:
- name: Install Perl dependencies
run: cpan install "Switch" "Text::Unaccent::PurePerl"

- name: Compile Hunspell from source if not cached
run: |
if [ -f "${{ github.workspace }}/hunspell-bin/unmunch" ]; then
echo "Hunspell binaries found in cache!"
else
git clone https://github.com/hunspell/hunspell ${HUNSPELL_DIR}
cd ${HUNSPELL_DIR}
sudo apt-get install autoconf automake autopoint libtool
autoreconf -vfi
./configure --prefix=${{ github.workspace }}/hunspell-bin
make
sudo make install
which unmunch
fi
- name: Cache Hunspell binaries
uses: actions/cache@v2
- name: Checkout Hunspell
uses: actions/checkout@v3
with:
path: |
${{ github.workspace }}/hunspell-bin
key: hunspell-binaries-${{ hashFiles('lt/hunspell/**') }}
repository: hunspell/hunspell
path: ${{ env.HUNSPELL_DIR }}

- name: Compile Hunspell
working-directory: ${{ env.HUNSPELL_DIR }}
run: |
sudo apt-get install autoconf automake autopoint libtool
autoreconf -vfi
./configure
make
sudo make install
sudo ldconfig
which unmunch
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
Expand Down

0 comments on commit edfcd92

Please sign in to comment.