Skip to content

Commit

Permalink
build: remove unneeded build setup, and also build on PRs/merge to de…
Browse files Browse the repository at this point in the history
…v branch

Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 23, 2024
1 parent 8b3bf25 commit 1ee5f3e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ name: Go

on:
push:
branches: [ "main" ]
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libgl1-mesa-dev xorg-dev

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -22,11 +18,6 @@ jobs:
with:
go-version: '1.22'

- name: Install GL
run: go get -u github.com/go-gl/gl/v3.2-core/gl
env:
CGO_ENABLED: 1

- name: Test
run: go test -v ./...
env:
Expand Down

0 comments on commit 1ee5f3e

Please sign in to comment.