Skip to content

Commit

Permalink
feat(ci): Build and test using nix
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Nov 7, 2024
1 parent 9ba937d commit a67979f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 1,31 @@
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <[email protected]>
# SPDX-License-Identifier: Apache-2.0

# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: "Build"

on:
push:
branches:
- main
pull_request:

jobs:
builds:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Nix build
run: nix build

- name: Check Flake
run: nix flake check

0 comments on commit a67979f

Please sign in to comment.