Skip to content

feat: add aarch64-linux #421

feat: add aarch64-linux

feat: add aarch64-linux #421

Workflow file for this run

name: "Build and populate cache"
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "35 3 * * *"
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- label: x86_64-linux
image: ubuntu-latest
- label: aarch64-linux
image: ubuntu-latest
system: aarch64-linux
- label: aarch64-darwin
image: macos-latest
system: aarch64-darwin
name: ${{ matrix.label }}
runs-on: ${{ matrix.image }}
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
substituters = https://cache.nixos.org/ https://cache.garnix.io
# - name: Show nixpkgs version
# run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
name: moraxyc
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Check evaluation
run: |
nix flake show
- name: Build nix packages
run: nix shell nixpkgs#nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs --show-trace
# - name: Trigger NUR update
# # Don't replace <YOUR_REPO_NAME> here!
# if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
# run: curl -XPOST "https://nur-update.nix-community.org/update?repo=${{ matrix.nurRepo }}"