Skip to content

refactor: invert -> inverted #25

refactor: invert -> inverted

refactor: invert -> inverted #25

Workflow file for this run

name: Build & Release
on:
push:
branches:
- main
tags:
- v*
pull_request:
permissions:
# https://github.com/softprops/action-gh-release/issues/236
contents: write
jobs:
build:
name: Build (${{ matrix.os }}) - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
arch: [amd64, arm64]
exclude:
# Cross-compilation to arm64 on x86 Linux is broken due to a bug in Go/Wails.
# Until that is fixed, only build x86 Linux binaries.
- os: ubuntu-latest
arch: arm64
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
check-latest: true
go-version: 1.21
- run: go version
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- run: node --version
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Install Linux Wails deps
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu
- name: Build Linux App
if: runner.os == 'Linux'
run: wails build -o Zen-${{ runner.os }}-${{ matrix.arch }} -platform linux/${{ matrix.arch }}
- name: Build MacOS App
if: runner.os == 'macOS'
run: wails build -o Zen-${{ runner.os }}-${{ matrix.arch }} -platform darwin/${{ matrix.arch }}
- name: Build App & Installer
if: runner.os == 'Windows'
run: wails build -o Zen-${{ runner.os }}-${{ matrix.arch }} -platform windows/${{ matrix.arch }} -nsis
- name: Add MacOS permissions
if: runner.os == 'macOS'
run: chmod +x build/bin/*/Contents/MacOS/*
shell: bash
- name: Add Linux perms
if: runner.os == 'Linux'
run: chmod +x build/bin/*
shell: bash
- uses: actions/upload-artifact@v3
with:
name: Zen-${{ runner.os }}-${{ matrix.arch }}
path: build/bin/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: build/bin/*
tag_name: ${{ github.ref }}
draft: true