Skip to content

Fix justStaticExecutables issue on aarch64-darwin #279

Fix justStaticExecutables issue on aarch64-darwin

Fix justStaticExecutables issue on aarch64-darwin #279

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [master]
jobs:
nix-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- name: Run Nix Flake Check
run: nix flake check
- name: Build library and generate haddock
run: |
nix build .\#nvfetcher-lib.out.doc
cp -r ./result-doc/share/doc/nvfetcher-*/html/ docs
- name: Run spec tests
run: |
nix develop --command cabal update
nix develop --command cabal test
- name: Run CLI with nvfetcher_example.toml
run : nix shell --command nvfetcher --config nvfetcher_example.toml
- name: Eval generated.nix
run : nix eval -f _sources/generated.nix
- name: Cleanup
run: rm -r _sources
- name: Run Main_example.hs
run: nix develop .\#ghcWithNvfetcher --command runghc Main_example.hs
- name: Deploy generated haddock to github pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.repository_owner == 'berberman' && github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
cname: nvfetcher.torus.icu