gitlab-ci: add upload step for flipperzero-firmware

This commit is contained in:
Luke Granger-Brown 2023-02-10 21:01:45 +00:00
parent 3e87d33c07
commit edd1e5f944

View file

@ -39,6 +39,17 @@ let
nixCache-x86_64-darwin = macOS "x86_64-darwin"; nixCache-x86_64-darwin = macOS "x86_64-darwin";
nixCache-aarch64-darwin = macOS "aarch64-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 = { lukegbcom = {
stage = "deploy-other"; stage = "deploy-other";
needs = [{ job = "nixCache-x86_64-linux"; artifacts = false; }]; needs = [{ job = "nixCache-x86_64-linux"; artifacts = false; }];