mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
39 lines
910 B
YAML
39 lines
910 B
YAML
# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
label:
|
|
- caladan
|
|
include:
|
|
- label: caladan
|
|
attr: darwinConfigurations.caladan.config.system.build.toplevel
|
|
runner: macos-14
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@d1ca217b388ee87b2507a9a93bf01368bde7cec2 # ratchet:cachix/install-nix-action@v31
|
|
|
|
- name: Build
|
|
run: nix build -L --show-trace .#${{ matrix.attr }}
|