Skip to content

Build

Build #134

Workflow file for this run

name: Build
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
tags: [ "*.*.*" ]
jobs:
nix:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: ❄️ Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org
- name: 💾 Cache Build
uses: cachix/cachix-action@v12
with:
name: kupo
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: 🔨 Build
run: nix-shell -p pandoc --keep GIT_SHA --command make
env:
GIT_SHA: ${{ github.sha }}
- name: 📎 Upload Artifact
uses: actions/upload-artifact@v3
with:
name: kupo-${{ github.sha }}-${{ runner.arch }}-${{ runner.os }}
path: |
dist/bin
dist/share