Refactoring and a lot of small bug fixes #32
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
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 }} |