mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-08-26 16:01:17 +00:00
Adopts logos-co/setup-nix-cache-action (as in logos-delivery-module#69); flake.nix substituter moves from the retired status.im nix-cache to cache.nix.logos.co/public. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: ci / nix
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
checks: write
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
system:
|
|
- aarch64-darwin
|
|
- x86_64-linux
|
|
nixpkg:
|
|
- liblogosdelivery
|
|
|
|
include:
|
|
- system: aarch64-darwin
|
|
runs_on: [self-hosted, macOS, ARM64]
|
|
|
|
- system: x86_64-linux
|
|
runs_on: [self-hosted, Linux, X64]
|
|
|
|
name: '${{ matrix.system }} / ${{ matrix.nixpkg }}'
|
|
runs-on: ${{ matrix.runs_on }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# Self-hosted runners have Nix preinstalled.
|
|
- uses: logos-co/setup-nix-cache-action@v1
|
|
with:
|
|
install-nix: false
|
|
attic-token-ci: ${{ secrets.ATTIC_TOKEN_CI }}
|
|
attic-token-public: ${{ secrets.ATTIC_TOKEN_PUBLIC }}
|
|
|
|
- name: 'Run Nix build for ${{ matrix.nixpkg }}'
|
|
shell: bash
|
|
run: nix build -L '.#${{ matrix.nixpkg }}'
|
|
|
|
- name: 'Show result contents'
|
|
shell: bash
|
|
run: find result -type f
|