mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-22 08:18:08 +02:00
31 lines
880 B
YAML
31 lines
880 B
YAML
name: Nix (Test)
|
|
|
|
on:
|
|
workflow_call:
|
|
secrets:
|
|
CACHIX_AUTH_TOKEN:
|
|
required: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: hyprwm/actions/nix-setup@main
|
|
with:
|
|
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
- name: Run test VM
|
|
run: nix build 'github:${{ github.repository }}?ref=${{ github.ref }}#checks.x86_64-linux.tests' -L --extra-substituters "https://hyprland.cachix.org"
|
|
|
|
- name: Check exit status
|
|
run: |
|
|
grep 0 result/exit_status || echo "hyprtester failed"
|
|
grep 0 result/exit_status_gtests || echo "gtests failed"
|
|
[ 0 = $(cat result/exit_status) ] && [ 0 = $(cat result/exit_status_gtests) ]
|
|
|
|
- name: Upload artifacts
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: logs
|
|
path: result
|