add toolchain.json for toolchain url
This commit is contained in:
		| @@ -10,17 +10,7 @@ commands: | |||||||
|       - run: |       - run: | ||||||
|           name: Set toolchain url and key |           name: Set toolchain url and key | ||||||
|           command: | |           command: | | ||||||
|             TOOLCHAIN_JSON='{ |             toolchain_url=$(jq -r '."<< parameters.toolchain >>"' .github/actions/setup_toolchain/toolchain.json) | ||||||
|               "aarch64-gcc": "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz", |  | ||||||
|               "arm-clang": "https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-19.1.1/LLVM-ET-Arm-19.1.1-Linux-x86_64.tar.xz", |  | ||||||
|               "arm-gcc": "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v13.2.1-1.1/xpack-arm-none-eabi-gcc-13.2.1-1.1-linux-x64.tar.gz", |  | ||||||
|               "msp430-gcc": "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2", |  | ||||||
|               "riscv-gcc": "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz", |  | ||||||
|               "rx-gcc": "https://github.com/hathach/rx_device/releases/download/0.0.1/gcc-8.3.0.202411-GNURX-ELF.run", |  | ||||||
|               "arm-iar": "https://updates.iar.com/FileStore/STANDARD/001/003/322/cxarm-9.60.3.deb" |  | ||||||
|             }' |  | ||||||
|             toolchain_url=$(echo $TOOLCHAIN_JSON | jq -r '.["<< parameters.toolchain >>"]') |  | ||||||
|  |  | ||||||
|             # only cache if not a github link |             # only cache if not a github link | ||||||
|             if [[ $toolchain_url != "https://github.com"* ]]; then |             if [[ $toolchain_url != "https://github.com"* ]]; then | ||||||
|               echo "<< parameters.toolchain >>-$toolchain_url" > toolchain_key |               echo "<< parameters.toolchain >>-$toolchain_url" > toolchain_key | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								.github/actions/setup_toolchain/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/actions/setup_toolchain/action.yml
									
									
									
									
										vendored
									
									
								
							| @@ -32,14 +32,7 @@ runs: | |||||||
|         inputs.toolchain != 'esp-idf' |         inputs.toolchain != 'esp-idf' | ||||||
|       id: set-toolchain-url |       id: set-toolchain-url | ||||||
|       run: | |       run: | | ||||||
|         TOOLCHAIN_JSON='{ |         TOOLCHAIN_URL=$(jq -r '."${{ inputs.toolchain }}"' .github/actions/setup_toolchain/toolchain.json) | ||||||
|           "aarch64-gcc": "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz", |  | ||||||
|           "arm-clang": "https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-19.1.1/LLVM-ET-Arm-19.1.1-Linux-x86_64.tar.xz", |  | ||||||
|           "msp430-gcc": "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2", |  | ||||||
|           "riscv-gcc": "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz", |  | ||||||
|           "rx-gcc": "https://github.com/hathach/rx_device/releases/download/0.0.1/gcc-8.3.0.202411-GNURX-ELF.run" |  | ||||||
|         }' |  | ||||||
|         TOOLCHAIN_URL=$(echo $TOOLCHAIN_JSON | jq -r '.["${{ inputs.toolchain }}"]') |  | ||||||
|         echo "toolchain_url=$TOOLCHAIN_URL" |         echo "toolchain_url=$TOOLCHAIN_URL" | ||||||
|         echo "toolchain_url=$TOOLCHAIN_URL" >> $GITHUB_OUTPUT |         echo "toolchain_url=$TOOLCHAIN_URL" >> $GITHUB_OUTPUT | ||||||
|       shell: bash |       shell: bash | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								.github/actions/setup_toolchain/toolchain.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.github/actions/setup_toolchain/toolchain.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | { | ||||||
|  |   "aarch64-gcc": "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz", | ||||||
|  |   "arm-clang": "https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-19.1.1/LLVM-ET-Arm-19.1.1-Linux-x86_64.tar.xz", | ||||||
|  |   "arm-gcc": "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v13.2.1-1.1/xpack-arm-none-eabi-gcc-13.2.1-1.1-linux-x64.tar.gz", | ||||||
|  |   "msp430-gcc": "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2", | ||||||
|  |   "riscv-gcc": "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz", | ||||||
|  |   "rx-gcc": "https://github.com/hathach/rx_device/releases/download/0.0.1/gcc-8.3.0.202411-GNURX-ELF.run", | ||||||
|  |   "arm-iar": "https://netstorage.iar.com/FileStore/STANDARD/001/003/583/cxarm-9.60.4.deb" | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach