Skip to content

adding cachix binary cache #26

adding cachix binary cache

adding cachix binary cache #26

name: "Nix Omnix CI (ssh)"
on:
push:
pull_request:
env:
SSH_LOCATION: /tmp/ssh_key
jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- run: |
echo "${{ secrets.SSH_KEY }}" > ${{ env.SSH_LOCATION }}
chmod 0700 ${{ env.SSH_LOCATION }}
ssh -i ${{ env.SSH_LOCATION }} -o StrictHostKeyChecking=no [email protected] echo "connected successfully"
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
extra-conf: |
builders = ssh://[email protected] x86_64-linux ${{ env.SSH_LOCATION }} 0 0
builders-use-substitutes = true
# - uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Install Cachix and Omnix
run: "nix profile install --accept-flake-config github:juspay/omnix nixpkgs#cachix"
- name: Authenticate Cachix
run: "cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build all flake outputs and push to Cachix
run: "om ci | cachix push hyprflake"