Skip to content

Tray/GUI polish: ad-hoc ports, auto-refresh, delete, compact health #77

Tray/GUI polish: ad-hoc ports, auto-refresh, delete, compact health

Tray/GUI polish: ad-hoc ports, auto-refresh, delete, compact health #77

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 5G
- name: Build (lint + test)
run: nix run .#build
- name: Compile binary
run: nix build
goreleaser-check:
name: goreleaser check + snapshot smoke test
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
config: .goreleaser.linux.yaml
- os: macos-latest
config: .goreleaser.darwin.yaml
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install Linux build deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev libappindicator3-dev libgl1-mesa-dev pkg-config \
libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev \
libxxf86vm-dev libxext-dev libxfixes-dev
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: check --config ${{ matrix.config }}
- name: Snapshot build (smoke test)
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: build --snapshot --single-target --clean --config ${{ matrix.config }}