on: [push] jobs: build: runs-on: cacher strategy: matrix: system: [x86_64-linux, aarch64-linux] steps: - name: Checkout repository uses: actions/checkout@v4 - name: Drop in ops/secrets/default.nix run: | echo "$OPS_SECRETS_DEFAULTNIX" > ops/secrets/default.nix env: OPS_SECRETS_DEFAULTNIX: "${{ secrets.OPS_SECRETS_DEFAULTNIX }}" - name: Build run: | nix-build ci-root.nix -A linkFarm --system "${{ matrix.system }}" cat result/other-systemPathJSON > system-path-${{ matrix.system }}.json - name: Upload system paths uses: forgejo/upload-artifact@v4 with: name: system-paths-${{ matrix.system }} path: system-paths-${{ matrix.system }}.json combine-systems: runs-on: cacher needs: [build] steps: - name: Download outputs uses: forgejo/download-artifact@v4 with: path: system-paths pattern: system-paths-* - run: | jq -s add system-paths/*.json > system-paths.json - name: Upload merged uses: forgejo/upload-artifact@v4 with: name: system-paths path: system-paths.json