move to cabal, nix flakes, autoformat #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Flake CI" | |
on: | |
pull_request: | |
push: | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
uses: insightsengineering/free-disk-space@v1.1.0 | |
- uses: actions/checkout@v3 | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | | |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= | |
allow-import-from-derivation = true | |
auto-optimise-store = true | |
substituters = https://hydra.iohk.io https://cache.nixos.org/ https://cache.iog.io https://cache.zw3rk.com https://mstksg.cachix.org | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: mstksg | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix flake check --show-trace | |
cache: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
uses: insightsengineering/free-disk-space@v1.1.0 | |
- uses: actions/checkout@v4.1.1 | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | | |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= | |
allow-import-from-derivation = true | |
auto-optimise-store = true | |
substituters = https://hydra.iohk.io https://cache.nixos.org/ https://cache.iog.io https://cache.zw3rk.com https://mstksg.cachix.org | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: mstksg | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build --show-trace | |
- run: nix develop --show-trace | |
every-compiler: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
uses: insightsengineering/free-disk-space@v1.1.0 | |
- uses: actions/checkout@v3 | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | | |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk= | |
allow-import-from-derivation = true | |
auto-optimise-store = true | |
substituters = https://hydra.iohk.io https://cache.nixos.org/ https://cache.iog.io https://cache.zw3rk.com https://mstksg.cachix.org | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: mstksg | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#everyCompiler | |