Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litex_setup.py: Disable auto-update of litex_setup for CI #1779

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --disable-auto-update

# Install GCC Toolchains
- name: Install GCC Toolchains
Expand Down
3 changes: 2 additions & 1 deletion litex_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ def main():
parser.add_argument("--dev", action="store_true", help="Development-Mode (no Auto-Update of litex_setup.py / Switch to [email protected] URLs).")
parser.add_argument("--freeze", action="store_true", help="Freeze and display current config.")
parser.add_argument("--release", default=None, help="Make release.")
parser.add_argument("--disable-auto-update", action="store_true", help="Disables Auto-Update of litex_setup.py")

# Retro-compatibility.
parser.add_argument("compat_args", nargs="*", help="Retro-Compatibility arguments (init, update, install or gcc).")
Expand All @@ -444,7 +445,7 @@ def main():

# Location/Auto-Update.
litex_setup_location_check()
if not args.dev:
if not args.dev and not args.disable_auto_update:
litex_setup_auto_update()

# Init.
Expand Down