From edd1e5f94433835843ba0f82ce32c7e761438e0d Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 10 Feb 2023 21:01:45 +0000 Subject: [PATCH] gitlab-ci: add upload step for flipperzero-firmware --- nix/gitlab-ci/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nix/gitlab-ci/default.nix b/nix/gitlab-ci/default.nix index 7678ba5ac1..830a938382 100644 --- a/nix/gitlab-ci/default.nix +++ b/nix/gitlab-ci/default.nix @@ -39,6 +39,17 @@ let nixCache-x86_64-darwin = macOS "x86_64-darwin"; nixCache-aarch64-darwin = macOS "aarch64-darwin"; + flipperzero-firmware = { + stage = "deploy-other"; + needs = [{ job = "nixCache-x86_64-linux"; artifacts = false; }]; + tags = [ "cacher" ]; + only.refs = [ "branch/default" ]; + + script = '' + export NIX_PATH=nixpkgs=$(readlink -f third_party/nixpkgs) + $(nix-build -A nix.pkgs.flipperzero-firmware.upload)/bin/upload-f0 + ''; + }; lukegbcom = { stage = "deploy-other"; needs = [{ job = "nixCache-x86_64-linux"; artifacts = false; }];