Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Build winapps"

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
nix:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v31

- name: Set up cache
uses: cachix/cachix-action@v17
with:
name: winapps
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
skipPush: "${{ github.event_name == 'pull_request' }}"

- run: nix flake check
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,13 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional
winapps.packages."${system}".winapps
winapps.packages."${system}".winapps-launcher # optional
];

# set up binary cache (optional)
nix.settings = {
substituters = [ "https://winapps.cachix.org/" ];
trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ];
trusted-users = [ "<your username>" ]; # replace with your username
};
}
)
];
Expand Down
28 changes: 14 additions & 14 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 11 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
nix-filter.url = "github:numtide/nix-filter";
};

nixConfig = {
extra-substituters = [
"https://cache.garnix.io"
];

extra-trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};

outputs =
{
nixpkgs,
Expand All @@ -32,11 +22,18 @@
pkgs = import nixpkgs { inherit system; };
in
rec {
formatter = pkgs.nixfmt-rfc-style;
formatter = pkgs.nixfmt;

packages = {
winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; };
winapps-launcher = pkgs.callPackage ./packages/winapps-launcher {
inherit (packages) winapps;
};
};

packages.winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; };
packages.winapps-launcher = pkgs.callPackage ./packages/winapps-launcher {
inherit (packages) winapps;
checks = {
build-winapps = packages.winapps;
build-launcher = packages.winapps-launcher;
};
}
);
Expand Down
Loading