Skip to content

Refactoring and a lot of small bug fixes #32

Refactoring and a lot of small bug fixes

Refactoring and a lot of small bug fixes #32

Workflow file for this run

on:
push:
tags: '*'
jobs:
release:
name: Build & release
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '>=1.18'
- name: 💿 Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libasound2-dev libgl1-mesa-dev xorg-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
- name: 🔨 Build
run: bash ./build.sh
- name: 📦 Compress binary into an archive (Windows)
if: runner.os == 'Windows'
run: 7z a Bamboo-Windows.zip bamboo.exe
- name: 📦 Compress binary into an archive (Unix)
if: runner.os != 'Windows'
run: zip Bamboo-${{runner.os}}.zip bamboo
- name: 📝 Generate release description
run: git log $(git describe HEAD~1 --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: 🎉 Publish release
uses: softprops/action-gh-release@v1
with:
body_path: ".github/RELEASE-TEMPLATE.md"
files: Bamboo-${{runner.os}}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}