-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1018 Bytes
/
cache.yml
File metadata and controls
39 lines (31 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Cache
on:
push:
branches:
- "v*"
env:
BRANCH_NAME: ${{ github.ref_name }}
jobs:
build-and-upload:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner:
- ubuntu-24.04
# - ubuntu-24.04-arm
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Connect to Cachix
uses: cachix/cachix-action@v14
with:
name: openmesh
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Use config from branch
run: sed -i -e "s|\"github:Openmesh-Network/xnodeos\"|\"github:Openmesh-Network/xnodeos/${BRANCH_NAME}\"|g" ./config/flake.nix
- name: Upload XnodeOS default config to Cachix
run: nix build ./config#nixosConfigurations.xnode.config.system.build.toplevel --accept-flake-config --print-out-paths --fallback | cachix push openmesh