Skip to content

Commit

Permalink
improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Aug 31, 2024
1 parent 9ac403c commit f49de28
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build-systems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache

- uses: cachix/install-nix-action@v27
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: anna328p
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix flake update keydb
- run: nix build 'path:.#nixosConfigurations.hermes.config.system.build.toplevel'
- run: echo 'OK'
- name: Update volatile inputs
run: nix flake update keydb

- name: Build hermes configuration
run: nix build --accept-flake-config 'path:.#nixosConfigurations.hermes.config.system.build.toplevel'

- name: Confirm success
run: echo 'OK'
19 changes: 16 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@

# android

nix-on-droid.url = github:nix-community/nix-on-droid;
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.inputs.home-manager.follows = "home-manager";
nix-on-droid = {
url = github:nix-community/nix-on-droid;
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};

# modules

Expand Down Expand Up @@ -92,6 +94,17 @@

nixConfig = {
allow-import-from-derivation = "true";

extra-substituters = ""
+ " https://nix-community.cachix.org"
+ " https://anna328p.cachix.org";

extra-trusted-public-keys = ""
+ "nix-community.cachix.org-1"
+ ":mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= "

+ "anna328p.cachix.org-1"
+ ":HcPUMrtQ7qT+bfx2fQ2HyJV5wCYQ2A3WwhxxrxDkvG0= ";
};

outputs = { self
Expand Down

0 comments on commit f49de28

Please sign in to comment.