upgrade gh actions cachix #161
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: "Humblr" | |
on: | |
schedule: | |
- cron: "0 2 * * *" | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = ${{ vars.CACHE_TRUSTED_PUBLIC_KEYS }} | |
substituters = ${{ vars.CACHE_SUBSTITUTERS }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: dandart | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build | |
run: | | |
nix-build | |
deploy-ghc98: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = ${{ vars.CACHE_TRUSTED_PUBLIC_KEYS }} | |
substituters = ${{ vars.CACHE_SUBSTITUTERS }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: dandart | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Push dependencies to Cachix (GHC 9.8) | |
run: | | |
nix-store -qR --include-outputs $(nix-instantiate shell.nix --argstr compiler ghc98 --add-root result/shell/ghc98 --indirect) | cachix push dandart | |
deploy-ghc96: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = ${{ vars.CACHE_TRUSTED_PUBLIC_KEYS }} | |
substituters = ${{ vars.CACHE_SUBSTITUTERS }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: dandart | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Push dependencies to Cachix (GHC 9.6) | |
run: | | |
nix-store -qR --include-outputs $(nix-instantiate shell.nix --argstr compiler ghc96 --add-root result/shell/ghc96 --indirect) | cachix push dandart | |
deploy-ghc94: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = ${{ vars.CACHE_TRUSTED_PUBLIC_KEYS }} | |
substituters = ${{ vars.CACHE_SUBSTITUTERS }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: dandart | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Push dependencies to Cachix (GHC 9.4) | |
run: | | |
nix-store -qR --include-outputs $(nix-instantiate shell.nix --argstr compiler ghc94 --add-root result/shell/ghc94 --indirect) | cachix push dandart | |
deploy-ghc92: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = ${{ vars.CACHE_TRUSTED_PUBLIC_KEYS }} | |
substituters = ${{ vars.CACHE_SUBSTITUTERS }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: dandart | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Push dependencies to Cachix (GHC 9.2) | |
run: | | |
nix-store -qR --include-outputs $(nix-instantiate shell.nix --argstr compiler ghc92 --add-root result/shell/ghc92 --indirect) | cachix push dandart |