ci workflow: typo fixed #6
Workflow file for this run
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 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib | |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/homebrew/opt/libffi/lib | |
ls -lah /opt/homebrew/opt/libffi/lib | |
- name: Run example | |
run: | | |
echo $LD_LIBRARY_PATH | |
echo $DYLD_LIBRARY_PATH | |
go run examples/simple/cos/main_unix.go |