Files
2022-01-13 15:09:03 +02:00

34 lines
869 B
YAML

name: Build
on:
push:
jobs:
build:
strategy:
matrix:
channel: ["channel:nixos-21.11", "channel:nixos-unstable"]
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2.3.4
- name: "Install Nix"
uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=${{ matrix.channel }}
- name: "Set up t2linux binary cache"
if: "!contains(github.event.head_commit.message, '[no cache]')"
uses: cachix/cachix-action@v10
with:
name: t2linux
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: "Build kernel, modules and firmware"
env:
NIXPKGS_ALLOW_UNFREE: "1"
NIXPKGS: ${{ matrix.channel }}
run: |
./build.sh
# vim: ft=yaml:et:sw=2:sts=2