From e3b448631f2cfbf2605c85cd6b28d307b599395c 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 | 5 +---- .github/workflows/nix.yaml | 17 +++++++++++++++++ flake.nix | 6 ++++-- 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/nix.yaml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3be82a3..ab88a36 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,13 +4,10 @@ name: Go on: - push: - branches: [ "main" ] pull_request: - branches: [ "main" ] + push: 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..2fc13d0 --- /dev/null +++ b/.github/workflows/nix.yaml @@ -0,0 +1,17 @@ +name: "Test" + +on: + pull_request: + push: + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - 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" ]; };