waforth/.github/workflows/build-waforthc.yml
2023-03-18 10:19:11 +01:00

30 lines
707 B
YAML

name: Build waforthc
on:
push:
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build-waforthc:
strategy:
matrix:
os: [macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- if: runner.os == 'macOS' || runner.os == 'Windows'
run: make -C src/waforthc package
shell: bash
- if: runner.os == 'Linux'
run: |
make -C src/waforthc package \
WABT_INCLUDE_DIR=/usr/local/include \
WABT_LIB_DIR=/usr/local/lib \
WABT_DATA_DIR=/usr/local/share/wabt
shell: bash
- run: make -C src/waforthc check