From de608ee1141ae93640880ea2d2ea122329cce9f8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 17 Sep 2023 21:59:55 +0200 Subject: [PATCH 1/2] ci: Switch install to --dev. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbfa106f6..e27b6a23d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: # Install (n)Migen / LiteX / Cores - name: Install LiteX run: | - python3 litex_setup.py --config=full --init --install --user + python3 litex_setup.py --config=full --init --install --user --dev # Install GCC Toolchains - name: Install GCC Toolchains From e0be02875375cdd3db347bdce0c56ef2241e917e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 18 Sep 2023 09:20:48 +0200 Subject: [PATCH 2/2] litex_setup: Don't do repo init in dev_mode (SSH clone) if running on CI. --- litex_setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex_setup.py b/litex_setup.py index 577675dfd..5ec3caa41 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -449,7 +449,9 @@ def main(): # Init. if args.init: - litex_setup_init_repos(config=args.config, tag=args.tag, dev_mode=args.dev) + ci_run = (os.environ.get("GITHUB_ACTIONS") == "true") + dev_mode = args.dev and (not ci_run) + litex_setup_init_repos(config=args.config, tag=args.tag, dev_mode=dev_mode) # Update. if args.update: