Skip to content

Commit 5299970

Browse files
authored
Add basic GitHub Action for Nix Flake (#1246)
1 parent 3009e95 commit 5299970

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/nix-flake.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Nix Flake
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
container: ${{ matrix.image }}
13+
strategy:
14+
matrix:
15+
include:
16+
- os: ubuntu-latest
17+
- os: macOS-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: DeterminateSystems/nix-installer-action@main
21+
- uses: DeterminateSystems/magic-nix-cache-action@main
22+
- name: "Check `nix develop` shell can open"
23+
run: nix develop --command "echo"
24+
# this Flake has no build target
25+
# - run: nix build
26+
- run: nix flake check

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm](https://img.shields.io/npm/v/spago.svg)][spago-npm]
44
[![Latest release](https://img.shields.io/github/v/release/purescript/spago.svg)](https://github.com/purescript/spago/releases)
55
[![build](https://github.com/purescript/spago/actions/workflows/build.yml/badge.svg)](https://github.com/purescript/spago/actions/workflows/build.yml)
6+
[![nix-flake](https://github.com/purescript/spago/actions/workflows/nix-flake.yml/badge.svg)](https://github.com/purescript/spago/actions/workflows/nix-flake.yml)
67
[![Maintainer: f-f](https://img.shields.io/badge/maintainer-f%2d-f-teal.svg)](http://github.com/f-f)
78

89
_(IPA: /ˈspaɡo/)_

0 commit comments

Comments
 (0)