2022-11-12 14:17:53 +01:00
|
|
|
name: Build waforthc
|
|
|
|
|
|
|
|
on:
|
|
|
|
# push:
|
|
|
|
# pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-waforthc:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-11-15 18:51:26 +01:00
|
|
|
os: [ubuntu-18.04]
|
2022-11-12 14:17:53 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./.github/actions/setup
|
2022-11-13 20:23:01 +01:00
|
|
|
|
2022-11-15 18:51:26 +01:00
|
|
|
- if: runner.os == 'macOS' || runner.os == 'Windows'
|
|
|
|
run: make -C src/waforthc package
|
2022-11-13 20:23:01 +01:00
|
|
|
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
|
2022-11-13 20:23:01 +01:00
|
|
|
shell: bash
|
|
|
|
|
2022-11-12 19:43:47 +01:00
|
|
|
- run: make -C src/waforthc check
|