mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-08-04 06:03:12 +00:00
ci: switch the Nix cache to setup-nix-cache-action (#192)
* ci: switch the Nix cache to setup-nix-cache-action Same as logos-chat-module#57 and logos-delivery-module#69; replaces the per-runner GitHub-actions cache with the shared Attic cache. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * ci: retrigger --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
5c55c2ee76
commit
4e350e255c
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -49,21 +49,17 @@ jobs:
|
|||||||
|
|
||||||
smoketest:
|
smoketest:
|
||||||
name: Smoketest
|
name: Smoketest
|
||||||
|
environment: ${{ github.ref == 'refs/heads/main' && 'public-cache' || '' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: logos-co/setup-nix-cache-action@v1
|
||||||
with:
|
with:
|
||||||
nix_version: 2.34.6
|
attic-token-ci: ${{ secrets.ATTIC_TOKEN_CI }}
|
||||||
extra_nix_config: |
|
attic-token-public: ${{ secrets.ATTIC_TOKEN_PUBLIC }}
|
||||||
experimental-features = nix-command flakes
|
|
||||||
- uses: nix-community/cache-nix-action@v6
|
|
||||||
with:
|
|
||||||
primary-key: nix-${{ runner.os }}-fixtest-${{ hashFiles('flake.nix', 'flake.lock') }}
|
|
||||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
|
||||||
- name: Build logos-delivery
|
- name: Build logos-delivery
|
||||||
run: nix build .#logos-delivery --print-build-logs
|
run: nix build .#logos-delivery --print-build-logs
|
||||||
# Build and run chat-cli through the dev shell so it links against the
|
# Build and run chat-cli through the dev shell so it links against the
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
{
|
{
|
||||||
description = "libchat - Logos Chat cryptographic library";
|
description = "libchat - Logos Chat cryptographic library";
|
||||||
|
|
||||||
|
nixConfig = {
|
||||||
|
extra-substituters = [ "https://cache.nix.logos.co/public" ];
|
||||||
|
extra-trusted-public-keys = [ "public:l4HrXgL4nw246+LBh2SOJyhz64BoGegOYLheT/iIAPU=" ];
|
||||||
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# nixos-unstable-small has both crates.io UA fixes (NixOS/nixpkgs#512735,
|
# nixos-unstable-small has both crates.io UA fixes (NixOS/nixpkgs#512735,
|
||||||
# NixOS/nixpkgs#524985); nixos-unstable hasn't caught up yet as of 2026-05-28.
|
# NixOS/nixpkgs#524985); nixos-unstable hasn't caught up yet as of 2026-05-28.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user