mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-08-10 19:22:25 +00:00
Some checks failed
Nix / build (push) Has been cancelled
Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com>
43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
name: Nix
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: nix-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
- name: Build stable package
|
|
run: nix build .#emerald-legacy-launcher --print-build-logs
|
|
|
|
- name: Build git package
|
|
run: nix build .#emerald-legacy-launcher-git --out-link result-git --print-build-logs
|
|
|
|
- name: Flake check
|
|
run: nix flake check --print-build-logs
|
|
|
|
- name: Verify outputs
|
|
run: |
|
|
test -x ./result/bin/emerald-legacy-launcher
|
|
test -x ./result-git/bin/emerald-legacy-launcher
|
|
nix path-info -Sh ./result ./result-git
|
|
ls -la ./result/bin/
|
|
ls -la ./result-git/bin/
|
|
ls -la ./result/share/applications/ || true
|