Skip to content

Main

Main #1015

Workflow file for this run

name: Main
on:
push:
branches:
- master
- feature/*
pull_request:
branches:
- master
schedule:
- cron: "0 8 * * *"
jobs:
checks:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-nix
with:
ssh-private-key: ${{ secrets.NIX_CACHE_SSH_KEY }}
- name: Build Nix Flake default package
uses: Wandalen/[email protected]
with:
attempt_limit: 3
command: nix build -j auto
- name: Build Nix Flake default development shell
uses: Wandalen/[email protected]
with:
attempt_limit: 3
command: nix develop -j auto --command true
- if: always()
uses: ./.github/actions/export-nix-store
with:
has-ssh-key: ${{ secrets.NIX_CACHE_SSH_KEY != '' }}
examples-shell:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-nix
with:
ssh-private-key: ${{ secrets.NIX_CACHE_SSH_KEY }}
- name: Build Example deriviation
uses: Wandalen/[email protected]
with:
attempt_limit: 3
command: nix-build -j auto examples/standard/default.nix
- if: always()
uses: ./.github/actions/export-nix-store
with:
has-ssh-key: ${{ secrets.NIX_CACHE_SSH_KEY != '' }}
examples-flake:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
continue-on-error: true
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-nix
with:
ssh-private-key: ${{ secrets.NIX_CACHE_SSH_KEY }}
- name: Build Example flake
uses: Wandalen/[email protected]
with:
attempt_limit: 3
command: nix build -j auto --impure ./examples/flake --override-input opam-nix-integration path:./.
- if: always()
uses: ./.github/actions/export-nix-store
with:
has-ssh-key: ${{ secrets.NIX_CACHE_SSH_KEY != '' }}