mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-25 07:48:10 +00:00
21 lines
602 B
YAML
21 lines
602 B
YAML
|
name: 'Download dependencies'
|
||
|
description: 'Nixpkgs and poetry'
|
||
|
inputs:
|
||
|
full-deps:
|
||
|
description: 'Pass --arg fullDeps true to nix-shell?'
|
||
|
required: false
|
||
|
default: false
|
||
|
runs:
|
||
|
using: "composite"
|
||
|
steps:
|
||
|
- name: Install nix
|
||
|
uses: cachix/install-nix-action@v23
|
||
|
with:
|
||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||
|
- name: Dependencies nixpkgs
|
||
|
run: nix-shell --arg fullDeps "${{ inputs.full-deps }}" --run "true"
|
||
|
shell: sh
|
||
|
- name: Dependencies poetry
|
||
|
run: nix-shell --arg fullDeps "${{ inputs.full-deps }}" --run "poetry install"
|
||
|
shell: sh
|