Skip to content

Merge pull request #35 from BrechtSerckx/retry-on-connectionerror #40

Merge pull request #35 from BrechtSerckx/retry-on-connectionerror

Merge pull request #35 from BrechtSerckx/retry-on-connectionerror #40

Workflow file for this run

name: Nix-CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
cache-name: brechtserckx-recycle
jobs:
Nix-CI:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clean up image
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
# used to provide bash in nix-shell
nix_path: nixpkgs=channel:nixos-unstable
# add extra nix caches
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org/
- name: Test Nix install
run: nix-build --version
- uses: cachix/cachix-action@v12
with:
name: '${{ env.cache-name }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: 'iohk'
- uses: falti/dotenv-action@v1.0.4
with:
export-variables: true
log-variables: true
keys-case: bypass
- run: nix-shell --run 'echo "shell ok"'
# FIXME: Build using system npm first
# This can be deleted once the Nix build for the ui works again
- run: nix-shell --run 'cd recycle-ics-ui && npm install && npm run build'
- run: nix-shell --run 'cabal build all'
# FIXME: While the NPM build is not working, I'll need to manually create
# The recycle-ics-ui build first
- run: nix-build -A recycle-client -A recycle-ics