maze-solver-go/.github/workflows/automatic-prerelease.yml

40 lines
847 B
YAML
Raw Normal View History

---
name: "pre-release"
on:
push:
branches:
2023-08-11 14:10:35 +02:00
- "main"
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
2023-08-11 14:27:24 +02:00
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
2023-08-11 14:29:35 +02:00
with:
go-version: "1.21"
2023-08-11 14:27:24 +02:00
2023-08-27 11:45:14 +02:00
- name: Set up fyne dependencies
run: sudo apt install libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl-dev libxxf86vm-dev
2023-08-11 14:27:24 +02:00
- name: Build
2023-08-27 12:42:03 +02:00
run: |
go build -v ./...
go build maze-solver
2023-08-11 14:27:24 +02:00
- name: Test
run: go test -v ./...
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
2023-08-27 12:42:03 +02:00
files: maze-solver