New cross-compilation setup with vcpkg #490
Workflow file for this run
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: Build and Test | |
| on: | |
| push: | |
| branches: [ 'master' ] | |
| pull_request: | |
| branches: [ 'master' ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| runner: [ ubuntu-24.04, macos-15 ] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.22.2' | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libasound2-dev libvorbis-dev libogg-dev | |
| - name: Install macOS dependencies | |
| if: runner.os == 'macOS' | |
| run: brew install libogg libvorbis | |
| - name: Build daemon | |
| run: go build -v ./cmd/daemon | |
| - name: Format | |
| run: test -z "$(gofmt -l .)" | |
| - name: Test | |
| run: go test -v -tags "test_unit test_integration" ./... |