Skip to content

Rebrand zed-spaces-launcher → Cosmonaut #9

Rebrand zed-spaces-launcher → Cosmonaut

Rebrand zed-spaces-launcher → Cosmonaut #9

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
run: nix build
- name: Test
run: nix develop --command go test ./...
check-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check version consistency
run: |
flake_ver=$(grep -oP 'version = "\K[^"]+' flake.nix)
fyne_ver=$(grep -oP 'Version = "\K[^"]+' FyneApp.toml)
plist_ver=$(grep -oP '<string>\K[0-9]+\.[0-9]+\.[0-9]+' dist/Info.plist | head -1)
echo "flake.nix: $flake_ver"
echo "FyneApp.toml: $fyne_ver"
echo "Info.plist: $plist_ver"
if [ "$flake_ver" != "$fyne_ver" ] || [ "$flake_ver" != "$plist_ver" ]; then
echo "::error::Version mismatch! All three files must have the same version."
exit 1
fi
echo "All versions match: $flake_ver"