Feature/libusb v1.0.27 hidapi v0.15.0 #42
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: Go | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - v2 | |
| pull_request: | |
| branches: | |
| - master | |
| - v2 | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: 'stable' | |
| - name: Install deps | |
| run: sudo apt-get install -y pkg-config libudev-dev | |
| if: startsWith(matrix.os,'ubuntu') | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Build hidraw | |
| run: go build -tags hidraw -v ./... | |
| if: startsWith(matrix.os,'ubuntu') | |
| - name: Test hidraw | |
| run: go test -tags hidraw -v ./... | |
| if: startsWith(matrix.os,'ubuntu') | |
| - name: Cross compile to win (hid disabled) | |
| run: GOOS=windows go build -v ./... | |
| if: startsWith(matrix.os,'ubuntu') |