@@ -8,10 +8,33 @@ jobs:
8 runs-on: ubuntu-latest
8 runs-on: ubuntu-latest
11+ # https://github.com/cachix/install-nix-action
11− - uses: actions/checkout@v2
12+ - uses: actions/checkout@v2.3.4
12− - uses: actions/setup-node@v1
13+ - uses: cachix/install-nix-action@v13
13− - run: npm install -g purescript
14+ with:
14− - run: npm install -g spago
15+ nix_path: nixpkgs=channel:nixos-unstable
15− - name: build
16+ - run: nix-shell --command 'spago -x test.dhall test'
18+ # https://github.com/purescript-contrib/setup-purescript
20+ # - uses: actions/checkout@v2
21+ # - name: Set up a PureScript toolchain
22+ # uses: purescript-contrib/setup-purescript@main
24+ # purescript: "0.14.1"
27+# - name: Cache PureScript dependencies
28+# uses: actions/cache@v2
29+# # This cache uses the .dhall files to know when it should reinstall
30+# # and rebuild packages. It caches both the installed packages from
31+# # the `.spago` directory and compilation artifacts from the `output`
32+# # directory. When restored the compiler will rebuild any files that
33+# # have changed. If you do not want to cache compiled output, remove
34+# # the `output` path.
36+# key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
17− spago -x test.dhall test
40+ # - run: spago -x test.dhall test