Skip to content

Commit 3c1e7e1

Browse files
Merge pull request #936 from winapps-org/feat/drop-garnix
[ci] Drop garnix
2 parents be267c4 + 398dc27 commit 3c1e7e1

4 files changed

Lines changed: 58 additions & 28 deletions

File tree

.github/workflows/build.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Build winapps"
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
nix:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install Nix
17+
uses: cachix/install-nix-action@v31
18+
19+
- name: Set up cache
20+
uses: cachix/cachix-action@v17
21+
with:
22+
name: winapps
23+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
24+
skipPush: "${{ github.event_name == 'pull_request' }}"
25+
26+
- run: nix flake check

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,13 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional
733733
winapps.packages."${system}".winapps
734734
winapps.packages."${system}".winapps-launcher # optional
735735
];
736+
737+
# set up binary cache (optional)
738+
nix.settings = {
739+
substituters = [ "https://winapps.cachix.org/" ];
740+
trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ];
741+
trusted-users = [ "<your username>" ]; # replace with your username
742+
};
736743
}
737744
)
738745
];

flake.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
nix-filter.url = "github:numtide/nix-filter";
1010
};
1111

12-
nixConfig = {
13-
extra-substituters = [
14-
"https://cache.garnix.io"
15-
];
16-
17-
extra-trusted-public-keys = [
18-
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
19-
];
20-
};
21-
2212
outputs =
2313
{
2414
nixpkgs,
@@ -32,11 +22,18 @@
3222
pkgs = import nixpkgs { inherit system; };
3323
in
3424
rec {
35-
formatter = pkgs.nixfmt-rfc-style;
25+
formatter = pkgs.nixfmt;
26+
27+
packages = {
28+
winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; };
29+
winapps-launcher = pkgs.callPackage ./packages/winapps-launcher {
30+
inherit (packages) winapps;
31+
};
32+
};
3633

37-
packages.winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; };
38-
packages.winapps-launcher = pkgs.callPackage ./packages/winapps-launcher {
39-
inherit (packages) winapps;
34+
checks = {
35+
build-winapps = packages.winapps;
36+
build-launcher = packages.winapps-launcher;
4037
};
4138
}
4239
);

0 commit comments

Comments
 (0)