Skip to content

Commit 4c7dd40

Browse files
committed
added some ci
1 parent 3f0a8a8 commit 4c7dd40

3 files changed

Lines changed: 53 additions & 3 deletions

File tree

.github/workflows/cachix.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and cache
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
package:
17+
- halley-stable
18+
- halley-unstable
19+
- halley-unstable-dev
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: cachix/install-nix-action@v31
23+
- uses: cachix/cachix-action@v16
24+
if: github.event_name == 'push'
25+
with:
26+
name: halley-flake
27+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
28+
- run: nix build --print-build-logs .#${{ matrix.package }}

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ Nix flake for [Halley](https://github.com/saltnpepper97/halley) — spatial Wayl
1010
}
1111
```
1212

13+
### Cachix
14+
15+
Prebuilt Linux packages are published to the public `halley-flake` Cachix cache. Configure it once before installing or building:
16+
17+
```bash
18+
nix run nixpkgs#cachix -- use halley-flake
19+
```
20+
21+
GitHub Actions builds all package variants for each pull request and push. Push builds are uploaded to Cachix. To enable publishing, create a `CACHIX_AUTH_TOKEN` repository secret containing a Cachix auth token with write access to `halley-flake`.
22+
1323
```bash
1424
nix build .#halley-stable # v0.4.0 release
1525
nix build .#halley-unstable # latest main branch
@@ -20,7 +30,7 @@ nix build .#default # same as unstable
2030

2131
| Package | Source | Extras |
2232
|---|---|---|
23-
| `halley-stable` | v0.4.0 tag | halley, halleyctl |
33+
| `halley-stable` | v0.5.0 tag | halley, halleyctl |
2434
| `halley-unstable` | main branch | + xdg-desktop-portal-halley |
2535

2636
Both install session files, systemd units, portal config, and D-Bus services.
@@ -59,4 +69,4 @@ nix profile install github:binarylinuxx/halley-flake#halley-unstable
5969
After installation, select **Halley** from your display manager session list, or run `halley-session` from a TTY.
6070

6171
> [!NOTE]
62-
> The unstable and dev packages are recommended for users who want the latest fixes, since Halley currently moves fast and releases may lag behind those fixes.
72+
> The unstable and dev packages are recommended for users who want the latest fixes, since Halley currently moves fast and releases may lag behind those fixes.

flake.nix

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,19 @@
185185
version = "0.5.0";
186186
src = halley-stable-src;
187187

188-
cargoLock.lockFile = halley-stable-src + "/Cargo.lock";
188+
cargoLock = {
189+
lockFile = halley-stable-src + "/Cargo.lock";
190+
191+
outputHashes = {
192+
"smithay-0.7.0" =
193+
"sha256-TV/GTfSvgfVwIFUGoASU7xm38opIBLjLMf1HeNTW07U=";
194+
};
195+
};
196+
197+
extraBuildInputs = with pkgs; [
198+
pipewire
199+
dbus
200+
];
189201

190202
runtimeLibs = with pkgs; [
191203
libglvnd

0 commit comments

Comments
 (0)