Skip to content

"pymarian" CLI, a proxy to "marian" #697

"pymarian" CLI, a proxy to "marian"

"pymarian" CLI, a proxy to "marian" #697

Workflow file for this run

name: MacOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-macos:
strategy:
matrix:
include:
- name: "Pymarian=YES"
pymarian: true
- name: "Pymarian=NO"
pymarian: false
name: "MacOS CPU-only ${{ atrix.name }}"

Check failure on line 18 in .github/workflows/macos.yml

View workflow run for this annotation

GitHub Actions / MacOS

Invalid workflow file

The workflow is not valid. .github/workflows/macos.yml (Line: 18, Col: 11): Unrecognized named-value: 'atrix'. Located at position 1 within expression: atrix.name
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: brew install boost openblas openssl protobuf
- name: Configure CMake
run: |
export LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"
mkdir -p build
cd build
cmake .. \
-DCOMPILE_CPU=on \
-DCOMPILE_CUDA=off \
-DCOMPILE_EXAMPLES=on \
-DCOMPILE_SERVER=off \
-DCOMPILE_TESTS=on \
-DUSE_FBGEMM=on \
-DUSE_SENTENCEPIECE=on \
-DPYMARIAN=${{matrix.pymarian}}
- name: Compile
working-directory: build
run: make -j2
- name: Run unit tests
working-directory: build
run: make test
- name: Print versions
working-directory: build
run: |
./marian --version
./marian-decoder --version
./marian-scorer --version
ls -hlv $(find . -maxdepth 1 -type f -perm +ugo+x \( -name "marian*" -o -name "spm*" \))
- name: Install PyMarian
working-directory: build
if: matrix.pymarian == true
run: |
echo "Wheels built: " && ls -lh pymarian*.whl
python3 -m pip install --upgrade pip setuptools wheel pytest
python3 -m pip install -v pymarian*.whl
python3 -m pymarian -v
pymarian-eval --version
pymarian --version