Skip to content

Commit

Permalink
.github/nix: init
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 23, 2024
1 parent e35c92f commit e3b4486
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
push:

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
];
};

Expand Down

0 comments on commit e3b4486

Please sign in to comment.