mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 21:13:37 +00:00
39 lines
734 B
YAML
39 lines
734 B
YAML
name: Build (Linux, x86-64)
|
|
|
|
on:
|
|
push:
|
|
paths: &workflow_paths
|
|
- '**.cpp'
|
|
- '**.h'
|
|
- '**.c'
|
|
- '**.cc'
|
|
- '**.cxx'
|
|
- '**.hh'
|
|
- '**.hpp'
|
|
- '**.hxx'
|
|
- '**.inl'
|
|
- "**meson.build"
|
|
- "flake.nix"
|
|
- '.github/workflows/build-linux.yml'
|
|
|
|
pull_request:
|
|
paths: *workflow_paths
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: Build
|
|
run: nix build --print-build-logs
|
|
|
|
- name: Flake integrity
|
|
run: nix flake check
|