Skip to content

Commit

Permalink
get-toolchain: use 'nightly' toolchain in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 12, 2020
1 parent 21bcde2 commit 5df387b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TOOLCHAIN_PATH="${TOOLCHAIN_PATH:-$PWD/$(find fomu-toolchain-* -type d -maxdepth
echo "TOOLCHAIN_PATH: $TOOLCHAIN_PATH"

export PATH=$TOOLCHAIN_PATH/bin:$PATH
export GHDL_PREFIX=$TOOLCHAIN_PATH/lib/ghdl

echo '::group::VHDL Blink example'
(
Expand Down
10 changes: 9 additions & 1 deletion get-toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def check_files(to_download):
return not error


TOOLCHAIN = "https://api.github.com/repos/im-tomu/fomu-toolchain/releases/latest"
TOOLCHAIN = "https://api.github.com/repos/im-tomu/fomu-toolchain/releases/%s" % ("tags/nightly" if os.environ.get('CI', False) else "latest")


def get_toolchain_data():
Expand Down Expand Up @@ -108,6 +108,14 @@ def main(argv):
plat = platform()
print("Platform:", plat)

if os.environ.get('CI', False):
platforms = {
"windows": "Windows",
"linux": "Linux",
"mac": "macOS"
}
plat = platforms[plat]

to_download = []

for asset in toolchain_data['assets']:
Expand Down

0 comments on commit 5df387b

Please sign in to comment.