-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Cross Platform build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
go: ["1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] | ||
steps: | ||
- | ||
name: Set up Go ${{ matrix.go }} | ||
uses: actions/setup-go@v4 | ||
id: go | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- | ||
name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- | ||
name: Install dependencies | ||
run: | | ||
sudo apt-get install -y libsamplerate0 libsamplerate0-dev | ||
- | ||
name: Compile | ||
run: go build | ||
- | ||
name: Execute Unit Tests | ||
run: go test ./... | ||
|
||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
go: ["1.11", "1.12", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] | ||
steps: | ||
- | ||
name: Set up Go ${{ matrix.go }} | ||
uses: actions/setup-go@v4 | ||
id: go | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- | ||
name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- | ||
name: Install dependencies | ||
run: brew install libsamplerate | ||
- | ||
name: Compile | ||
run: go build | ||
- | ||
name: Execute Unit Tests | ||
run: go test ./... | ||
|
||
|
||
update_code_coverage: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- | ||
name: Set up Go 1.21 | ||
uses: actions/setup-go@v4 | ||
id: go | ||
with: | ||
go-version: 1.21 | ||
- | ||
name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- | ||
name: Install dependencies | ||
run: | | ||
sudo apt-get install -y libsamplerate0 libsamplerate0-dev | ||
- | ||
name: Execute Unit Tests | ||
run: go test -race -coverprofile=coverage.out -covermode=atomic | ||
- | ||
name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
.vscode/ |
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