diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5446557 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: "Build" +on: + pull_request: + push: +jobs: + stable: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: wires + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build .#stable + nightly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: wires + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build .#nightly diff --git a/.github/workflows/test-templates.yml b/.github/workflows/test-templates.yml index 0416b0c..e8299a3 100644 --- a/.github/workflows/test-templates.yml +++ b/.github/workflows/test-templates.yml @@ -10,6 +10,9 @@ jobs: - uses: cachix/install-nix-action@v27 with: nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + trusted-public-keys = wires.cachix.org-1:7XQoG91Bh+Aj01mAJi77Ui5AYyM1uEyV0h1wOomqjpk= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + substituters = https://wires.cachix.org https://cache.nixos.org/ - name: Build working-directory: ./templates/nightly run: nix build .#neovim --override-input tolerable ../../.