Skip to content

Commit

Permalink
nix: Update kernel image hashes
Browse files Browse the repository at this point in the history
This is incredibly odd but CI started failing for new PRs even though
locally it works fine. Updating this as the kernel images actually
changed but seems like nix didn't catch that somehow
  • Loading branch information
javierhonduco committed Sep 16, 2024
1 parent 321d1ef commit 833ec68
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- name: Run `cargo fmt`
run: nix develop --ignore-environment --command cargo fmt --check
- name: Run `nix fmt`
run: nix fmt -- --check .
run: nix fmt -- --check .
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
run: |
nix develop --ignore-environment --command skopeo copy --dest-creds="${{ github.repository_owner }}:${{ github.token }}" docker-archive:./result docker://ghcr.io/javierhonduco/lightswitch:${{ github.ref_name }}
nix develop --ignore-environment --command skopeo copy --dest-creds="${{ github.repository_owner }}:${{ github.token }}" docker-archive:./result docker://ghcr.io/javierhonduco/lightswitch:latest
nix develop --ignore-environment --command skopeo copy --dest-creds="${{ github.repository_owner }}:${{ github.token }}" docker-archive:./result docker://ghcr.io/javierhonduco/lightswitch:latest
2 changes: 1 addition & 1 deletion .github/workflows/static-build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
uses: actions/upload-artifact@main
with:
name: lightswitch-x86_64
path: target/x86_64-unknown-linux-gnu/release/lightswitch
path: target/x86_64-unknown-linux-gnu/release/lightswitch
4 changes: 2 additions & 2 deletions .github/workflows/vmtests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: vmtests
name:
on:
pull_request:
push:
Expand Down Expand Up @@ -27,4 +27,4 @@ jobs:
sudo apt-get update && sudo apt-get -y install --no-install-recommends qemu-system-x86 qemu-guest-agent
- name: Run kernel tests
run: nix run .#vmtest
run: nix run .#vmtest
8 changes: 4 additions & 4 deletions vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
name = "download-kernel-5.15";
src = pkgs.fetchurl {
url = "https://github.com/javierhonduco/lightswitch-kernels/raw/cfb94e9/bzImage-v5.15-fedora38";
hash = "sha256-nq8W72vuNKCgO1OS6aJtAfg7AjHavRZ7WAkP7X6V610=";
hash = "sha256-pfQUxfBbDcLwpYFwwMubA4tMw5I60WYb7pKCvkPbgXY";
};
dontUnpack = true;
installPhase = ''
Expand All @@ -18,7 +18,7 @@ let
name = "download-kernel-6.0";
src = pkgs.fetchurl {
url = "https://github.com/javierhonduco/lightswitch-kernels/raw/cfb94e9/bzImage-v6.0-fedora38";
hash = "sha256-ZBBQ0yVUn+Isd2b+a32oMEbNo8T1v46P3rEtZ+1j9Ic=";
hash = "sha256-EgUIm9QUuTFZZp6qYX6YW2PWW63x/whRXajArHqpqfo=";
};
dontUnpack = true;
installPhase = ''
Expand All @@ -31,7 +31,7 @@ let
name = "download-kernel-6.2";
src = pkgs.fetchurl {
url = "https://github.com/javierhonduco/lightswitch-kernels/raw/cfb94e9/bzImage-v6.2-fedora38";
hash = "sha256-YO2HEIWTuEEJts9JrW3V7UVR7t4J3+8On+tjdELa2m8=";
hash = "sha256-FDIkraUFzgJf5rJYQliqS8F7jeO4KWc5OeZDXqu/0uA=";
};
dontUnpack = true;
installPhase = ''
Expand All @@ -44,7 +44,7 @@ let
name = "download-kernel-6.6";
src = pkgs.fetchurl {
url = "https://github.com/javierhonduco/lightswitch-kernels/raw/cfb94e9/bzImage-v6.6-fedora38";
hash = "sha256-6Fu16SPBITP0sI3lapkckZna6GKBn2hID038itt82jA=";
hash = "sha256-9SNl69kpyyPzfxGk8jdPBAXT929a4Ep7vwkerP7SVl8=";
};
dontUnpack = true;
installPhase = ''
Expand Down

0 comments on commit 833ec68

Please sign in to comment.