Skip to content

ci/cd: run varargs/libc added #32

ci/cd: run varargs/libc added

ci/cd: run varargs/libc added #32

Workflow file for this run

name: Run examples
on: [push, pull_request]
env:
CGO_ENABLED: 0
jobs:
run:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- name: Install libffi
if: runner.os == 'macOS'
run: |
brew update
brew install libffi
- name: Run simple/cos
run: go run .
working-directory: ./examples/simple/cos/
env:
DYLD_FALLBACK_LIBRARY_PATH: $DYLD_FALLBACK_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib
- name: Run varargs/libc
run: go run .
working-directory: ./examples/varargs/libc/
env:
DYLD_FALLBACK_LIBRARY_PATH: $DYLD_FALLBACK_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib