rename files with init functions #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run examples | |
on: [push, pull_request] | |
env: | |
CGO_ENABLED: 0 | |
jobs: | |
run: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-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 example | |
run: go run examples/simple/cos/main_unix.go | |
env: | |
DYLD_FALLBACK_LIBRARY_PATH: $DYLD_FALLBACK_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib |