mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
feat: add github action env test
This commit is contained in:
2 files changed
+20
-7
No files matched your search
@@ -14,6 +14,19 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download and extract RISC-V toolchain
|
||||
run: |
|
||||
wget https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2021.09.21/riscv32-elf-ubuntu-20.04-nightly-2021.09.21-nightly.tar.gz
|
||||
tar -xzf riscv32-elf-ubuntu-20.04-nightly-2021.09.21-nightly.tar.gz -C /tmp
|
||||
toolchain_bin="/tmp/riscv32-elf-ubuntu-20.04-nightly-2021.09.21-nightly/bin"
|
||||
echo "RISCV_TOOLCHAIN_BIN=$toolchain_bin" >> $GITHUB_ENV
|
||||
echo "$toolchain_bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Use the toolchain in a subsequent step
|
||||
run: |
|
||||
echo "The toolchain path is $RISCV_TOOLCHAIN_BIN"
|
||||
riscv32-unknown-elf-gcc --version
|
||||
|
||||
- name: Setup Environment
|
||||
run: python3 setup.py
|
||||
|
||||
|
||||
@@ -318,15 +318,15 @@ def main():
|
||||
print("Please refer to official documentation for manual installation: https://verilator.org/guide/latest/install.html")
|
||||
sys.exit(1)
|
||||
|
||||
if check_software_toolchain_installed():
|
||||
print("\n✓ software toolchain is already installed, no action needed")
|
||||
sys.exit(0)
|
||||
# if check_software_toolchain_installed():
|
||||
# print("\n✓ software toolchain is already installed, no action needed")
|
||||
# sys.exit(0)
|
||||
|
||||
if not install_software_toolchain():
|
||||
print("software toolchain installation failed, exiting")
|
||||
sys.exit(1)
|
||||
# if not install_software_toolchain():
|
||||
# print("software toolchain installation failed, exiting")
|
||||
# sys.exit(1)
|
||||
|
||||
check_software_toolchain_installed()
|
||||
# check_software_toolchain_installed()
|
||||
|
||||
# TODO: git clone mpw
|
||||
os.chdir(project_path)
|
||||
|
||||
Reference in new issue
Block a user