Skip to content

Commit

Permalink
Add basic GitHub Action for Nix Flake (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich authored Jul 7, 2024
1 parent 3009e95 commit 5299970
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nix-flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Nix Flake

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ${{ matrix.os }}
container: ${{ matrix.image }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macOS-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: "Check `nix develop` shell can open"
run: nix develop --command "echo"
# this Flake has no build target
# - run: nix build
- run: nix flake check
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![npm](https://img.shields.io/npm/v/spago.svg)][spago-npm]
[![Latest release](https://img.shields.io/github/v/release/purescript/spago.svg)](https://github.com/purescript/spago/releases)
[![build](https://github.com/purescript/spago/actions/workflows/build.yml/badge.svg)](https://github.com/purescript/spago/actions/workflows/build.yml)
[![nix-flake](https://github.com/purescript/spago/actions/workflows/nix-flake.yml/badge.svg)](https://github.com/purescript/spago/actions/workflows/nix-flake.yml)
[![Maintainer: f-f](https://img.shields.io/badge/maintainer-f%2d-f-teal.svg)](http://github.com/f-f)

_(IPA: /ˈspaɡo/)_
Expand Down

0 comments on commit 5299970

Please sign in to comment.