add check-bench workflow
This commit is contained in:
parent
96bf20c853
commit
404d5acad1
1 changed files with 45 additions and 25 deletions
70
.github/workflows/integrate.yaml
vendored
70
.github/workflows/integrate.yaml
vendored
|
|
@ -37,6 +37,28 @@ jobs:
|
||||||
- run: nix build .#checks.x86_64-linux.formatCheck
|
- run: nix build .#checks.x86_64-linux.formatCheck
|
||||||
name: Run 'formatCheck' from flake.nix
|
name: Run 'formatCheck' from flake.nix
|
||||||
|
|
||||||
|
check-bench:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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 build .#checks.x86_64-linux.benchCheck
|
||||||
|
name: Run 'benchCheck' from flake.nix
|
||||||
|
|
||||||
check-build:
|
check-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -69,35 +91,33 @@ jobs:
|
||||||
- name: Build the project
|
- name: Build the project
|
||||||
run: nix build .#check.x86_64-linux
|
run: nix build .#check.x86_64-linux
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
haddock:
|
haddock:
|
||||||
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:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
extra_nix_config: |
|
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=
|
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 }}
|
||||||
|
|
||||||
- run: nix build .#packages.x86_64-linux.haddock
|
- run: nix build .#packages.x86_64-linux.haddock
|
||||||
name: Run 'haddock' from flake.nix
|
name: Run 'haddock' from flake.nix
|
||||||
|
|
||||||
# This publishes the haddock result to the branch 'gh-pages',
|
# This publishes the haddock result to the branch 'gh-pages',
|
||||||
# which is set to automatically deploy to https://liqwid-labs.github.io/agora/.
|
# which is set to automatically deploy to https://liqwid-labs.github.io/agora/.
|
||||||
- name: Publish Documentation
|
- name: Publish Documentation
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./result/agora/html
|
publish_dir: ./result/agora/html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue