Fix violation of cgo pointer rules #256
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: Build | |
on: | |
push: | |
paths-ignore: | |
- example/** | |
- README.md | |
branches: | |
- "main" | |
pull_request: | |
paths-ignore: | |
- example/** | |
- README.md | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format style check for Objective-C files. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '13' | |
build: | |
needs: formatting-check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macOS-11 | |
- macOS-12 | |
go: | |
- '^1.18' | |
- '^1.19' | |
- '^1.20' | |
- '^1.21' | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
cache: true | |
- name: vet | |
run: go vet ./... | |
- name: Download Linux kernel | |
run: make download_kernel | |
- name: Unit Test | |
run: make test | |
- name: Build Linux | |
run: make -C example/linux | |
- name: Build GUI Linux | |
run: make -C example/gui-linux |