From ac5527310ac787d4f0682271dfb0f43edc8f4a6b Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 23 Jul 2024 17:45:51 +0100 Subject: [PATCH] .github/nix: init --- .github/workflows/go.yml | 1 - .github/workflows/nix.yaml | 19 +++++++++++++++++++ flake.nix | 6 ++++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/nix.yaml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3be82a3..a0ec3f7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,6 @@ on: branches: [ "main" ] jobs: - build: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml new file mode 100644 index 0000000..ecd15b8 --- /dev/null +++ b/.github/workflows/nix.yaml @@ -0,0 +1,19 @@ +name: "Test" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: DeterminateSystems/nix-installer-action@main + + - uses: DeterminateSystems/magic-nix-cache-action@main + + - run: nix flake check -L diff --git a/flake.nix b/flake.nix index b3115af..350c1a5 100644 --- a/flake.nix +++ b/flake.nix @@ -73,8 +73,10 @@ "-m 4G" "-vga none" "-device virtio-gpu-pci" - #"-device virtio-vga-gl" - #"-display gtk,gl=on" + # needs qemu_full: + # "-device virtio-vga-gl" + # "-display egl-headless,gl=core" + # "-display gtk,gl=on" ]; };