Build #9
Workflow file for this run
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
name: Build | |
# Run only when a new tag is pushed. | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Fetch names for `git describe`. | |
- run: git fetch --prune --unshallow --tags | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- 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-* |