Given up on trying to find efficiencies
This commit is contained in:
parent
6a7336ce41
commit
12aff6bc9f
1 changed files with 37 additions and 7 deletions
44
.github/workflows/integrate.yaml
vendored
44
.github/workflows/integrate.yaml
vendored
|
|
@ -15,10 +15,11 @@ on:
|
||||||
- "flake.lock"
|
- "flake.lock"
|
||||||
- "agora.cabal"
|
- "agora.cabal"
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
check-formatting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2.4.0
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v16
|
- uses: cachix/install-nix-action@v16
|
||||||
name: Set up Nix and IOHK caches
|
name: Set up Nix and IOHK caches
|
||||||
with:
|
with:
|
||||||
|
|
@ -27,28 +28,56 @@ jobs:
|
||||||
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||||
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
|
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v10
|
- uses: cachix/cachix-action@v10
|
||||||
with:
|
with:
|
||||||
name: mlabs
|
name: mlabs
|
||||||
authToken: ${{ secrets.CACHIX_KEY }}
|
authToken: ${{ secrets.CACHIX_KEY }}
|
||||||
check-formatting:
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: ./.github/format.sh
|
- run: ./.github/format.sh
|
||||||
name: Run fourmolu
|
name: Run fourmolu
|
||||||
|
|
||||||
run-linter:
|
run-linter:
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v16
|
||||||
|
name: Set up Nix and IOHK caches
|
||||||
|
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= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||||
|
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- uses: cachix/cachix-action@v10
|
||||||
|
with:
|
||||||
|
name: mlabs
|
||||||
|
authToken: ${{ secrets.CACHIX_KEY }}
|
||||||
|
|
||||||
- run: nix run nixpkgs#hlint -- $(git ls-tree -r HEAD --full-tree --name-only | grep -E '.*\.hs')
|
- run: nix run nixpkgs#hlint -- $(git ls-tree -r HEAD --full-tree --name-only | grep -E '.*\.hs')
|
||||||
name: Run hlint
|
name: Run hlint
|
||||||
|
|
||||||
check-build:
|
check-build:
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v16
|
||||||
|
name: Set up Nix and IOHK caches
|
||||||
|
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= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||||
|
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- uses: cachix/cachix-action@v10
|
||||||
|
with:
|
||||||
|
name: mlabs
|
||||||
|
authToken: ${{ secrets.CACHIX_KEY }}
|
||||||
|
|
||||||
- name: Add cabal folder to cache
|
- name: Add cabal folder to cache
|
||||||
id: cabal
|
id: cabal
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.4
|
||||||
|
|
@ -58,5 +87,6 @@ jobs:
|
||||||
~/.cabal/store
|
~/.cabal/store
|
||||||
dist-newstyle
|
dist-newstyle
|
||||||
key: ${{ runner.os }}-cabal
|
key: ${{ runner.os }}-cabal
|
||||||
|
|
||||||
- name: Build the project
|
- name: Build the project
|
||||||
run: nix build
|
run: nix build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue