waforth/.github/workflows/build-waforthc.yml

31 lines
707 B
YAML
Raw Normal View History

2022-11-12 14:17:53 +01:00
name: Build waforthc
on:
2022-11-25 19:44:26 +01:00
push:
pull_request:
2022-11-12 14:17:53 +01:00
workflow_dispatch:
workflow_call:
jobs:
build-waforthc:
strategy:
matrix:
2022-11-15 18:55:34 +01:00
os: [macos-latest, ubuntu-20.04]
2022-11-12 14:17:53 +01:00
runs-on: ${{ matrix.os }}
steps:
2023-03-18 09:30:15 +01:00
- uses: actions/checkout@v3
2022-11-12 14:17:53 +01:00
- uses: ./.github/actions/setup
2022-11-15 18:51:26 +01:00
- if: runner.os == 'macOS' || runner.os == 'Windows'
run: make -C src/waforthc package
shell: bash
- if: runner.os == 'Linux'
2022-11-15 18:51:26 +01:00
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
2022-11-12 19:43:47 +01:00
- run: make -C src/waforthc check