-
Notifications
You must be signed in to change notification settings - Fork 25
39 lines (33 loc) · 1.48 KB
/
build_static_embedded_nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Build & test static embeds (nix)"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
substituters = https://cache.nixos.org https://nix-community.cachix.org https://hydra.iohk.io
- uses: cachix/cachix-action@v10
with:
name: luispedro
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build -f build-scripts/ngless-static-embed-dependencies.nix projectCross.musl64.hsPkgs.NGLess.components.exes.ngless --out-link ngless-static-embed
- run: nix-shell build-scripts/shell-static.nix --pure --command ./run-tests.sh
- run: nix build -f release.nix projectCross.musl64.hsPkgs.NGLess.components.exes.ngless --out-link ngless-static
- name: "Upload with embeds"
uses: actions/upload-artifact@v2
with:
name: ngless_static-embed
path: ngless-static-embed/bin/ngless
- name: "Upload without embeds"
uses: actions/upload-artifact@v2
with:
name: ngless_static
path: ngless-static/bin/ngless