Updated CI #15
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
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO debug windows-* | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- if: ${{ startsWith(matrix.os, 'windows') }} | |
run: | | |
(Get-Content C:\tools\php\php.ini) -replace ';extension=ffi', 'extension=ffi' | Out-File -encoding ASCII C:\tools\php\php.ini | |
(Get-Content C:\tools\php\php.ini) -replace ';ffi.enable=preload', 'ffi.enable=preload' | Out-File -encoding ASCII C:\tools\php\php.ini | |
- run: composer install | |
- uses: actions/cache@v3 | |
with: | |
path: MITIE-models | |
key: models | |
id: cache-models | |
- name: Download models | |
if: steps.cache-models.outputs.cache-hit != 'true' | |
run: | | |
curl -Ls -o models.tar.bz2 https://github.com/mit-nlp/MITIE/releases/download/v0.4/MITIE-models-v0.2.tar.bz2 | |
tar xfj models.tar.bz2 | |
- run: composer test | |
env: | |
MITIE_MODELS_PATH: MITIE-models/english |