Skip to content

Commit

Permalink
fix linter setup, add go1.15/1.21 build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
spezifisch committed Oct 23, 2023
1 parent 4e712ad commit 1e27f84
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ on:

jobs:
build:
strategy:
fail-fast: false
matrix:
go: ["1.15", "1.21"]

runs-on: ubuntu-latest

steps:
- name: Library dependencies
run: sudo apt-get install libmpv-dev libglx-dev libgl-dev

- uses: actions/checkout@v4

- uses: actions/setup-go@v4
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Library dependencies
run: sudo apt-get install libmpv-dev libglx-dev libgl-dev
go-version: ${{ matrix.go }}

- name: Compile
run: |
Expand All @@ -27,6 +33,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
if: matrix.go == '1.21' && startsWith(github.ref, 'refs/tags/')
with:
files: stmp
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Library dependencies
run: sudo apt-get install libmpv-dev libglx-dev libgl-dev

- uses: actions/checkout@v4

- uses: actions/setup-go@v4
Expand Down

0 comments on commit 1e27f84

Please sign in to comment.