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-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
|