Skip to content

github: add macOS to our build set #10

github: add macOS to our build set

github: add macOS to our build set #10

Workflow file for this run

name: Build orch
on:
push:
branches: ['*']
pull_request:
types: [opened, reopened, edited, synchronize]
permissions:
contents: read
jobs:
build:
name: Build ${{ matrix.os }} (lua${{ matrix.lua }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-latest]
lua: [5.2, 5.3, 5.4]
include:
- os: ubuntu-20.04
lua_incdir: /usr/include/lua${{ lua }}

Check failure on line 21 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build orch

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 21, Col: 25): Unrecognized named-value: 'lua'. Located at position 1 within expression: lua .github/workflows/build.yml (Line: 22, Col: 22): Unrecognized named-value: 'lua'. Located at position 1 within expression: lua
lua_lib: -llua${{ lua }}
- os: ubuntu-22.04
lua_incdir: /usr/include/lua${{ lua }}
lua_lib: -llua${{ lua }}
- os: macos-latest
lua: 5.4
pkgs: bmake [email protected]
lua_incdir: /opt/homebrew/Cellar/lua/5.4.6/include/lua
lua_lib: -L/opt/homebrew/Cellar/lua/5.4.6/lib -llua${{ lua }}
exclude:
- os: ubuntu-20.04
lua: 5.4
steps:
- name: checkout
uses: actions/checkout@v4
- name: install system packages (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update --quiet || true
sudo apt-get -yq --no-install-suggests --no-install-recommends install bmake liblua${{ matrix.lua }}-dev
- name: install system packages (macOS)
if: runner.os == 'macOS'
run: |
brew update --quiet || true
brew install ${{ matrix.pkgs }}
- name: build orch(1)
run: |
env ORCHLUA_PATH=/usr/share/orch LUA_INCDIR=${{ matrix.lua_incdir }} \
LUA_LIB=${{ matrix.lua_lib }} bmake