release: 0.14.1 #34
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
| name: Test (Go) | |
| on: | |
| push: | |
| branches: [ release, next ] | |
| pull_request: | |
| branches: [ release, next ] | |
| permissions: | |
| contents: read | |
| env: | |
| DYLD_LIBRARY_PATH: /usr/local/lib | |
| CGO_CFLAGS: -I/usr/local/include | |
| CGO_LDFLAGS: -L/usr/local/lib | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - run: | | |
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| sudo cmake --install build | |
| - if: matrix.os == 'ubuntu-latest' | |
| run: sudo ldconfig | |
| - run: go test -race -v -timeout 30s | |
| working-directory: watcher-go | |
| - uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| working-directory: watcher-go |