set default network config #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cache | |
| on: | |
| push: | |
| branches: | |
| - cache | |
| 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.05 | |
| - name: Connect to Cachix | |
| uses: cachix/cachix-action@v14 | |
| with: | |
| name: openmesh | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: Upload Xnode Manager package to Cachix | |
| run: nix build --accept-flake-config --print-out-paths --fallback | cachix push openmesh | |
| - name: Upload XnodeOS default config to Cachix | |
| run: sed -i -e 's/github:Openmesh-Network\/xnode-manager/github:Openmesh-Network\/xnode-manager\/cache/g' ./os/flake.nix && nix build ./os#nixosConfigurations.xnode.config.system.build.toplevel --accept-flake-config --print-out-paths --fallback | cachix push openmesh |