macos/screencapturekit: add support with TCC error handling and example #367
This file contains hidden or 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
| on: [pull_request] | |
| name: Test | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [oldstable] | |
| os: [macos-11, macos-12, macos-13] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| run: | | |
| TAGS=${{ matrix.os }} | |
| TAGS=${TAGS//-} # remove dash | |
| go test -tags $TAGS -v ./... | |
| - name: Build helloworld | |
| run: | | |
| TAGS=${{ matrix.os }} | |
| TAGS=${TAGS//-} # remove dash | |
| go build -tags $TAGS ./macos/_examples/helloworld |