Skip to content

Commit

Permalink
Add build-linux job
Browse files Browse the repository at this point in the history
  • Loading branch information
jangler committed Mar 25, 2024
1 parent be52a71 commit 63f44ad
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
# TODO: Change this to master!
branches: [ "actions" ]
pull_request:
branches: [ "master" ]

jobs:

build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Install dependencies
run: sudo apt install rename lib{asound2,x11,xext,xcursor,xinerama,xi,xrandr,xss,xxf86vm,sdl2,sdl2-ttf}-dev

- name: Test
run: go test -v ./...

- name: Build
run: GOOS=linux bash misc/mkdist.sh

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux
path: dist/faunatone-*

0 comments on commit 63f44ad

Please sign in to comment.