- build-extra-tests composite-action comment changed to Builds extra test required for FireSim tests - removed unneeded inputs tools-version and group-key from run-tests composite action - Added better comment to toolchain-build composite action - Change CI_MAKE_NPROC back to 8 in defaults.sh - Moved all the duplicated enviroment setting stuff in workflow file to the top - BUILDSERVER, BUILDUSER, CI_DIR, SERVER, and JVM_OPTS - Romoved all the not needed passed parameters in the calls to run-script - A bit of cleanup to .github/README.md - added link to SO `if` hack - cleaned up comments on CI_DIR - removed bad empty final bullet line
30 lines
874 B
YAML
30 lines
874 B
YAML
name: toolchain-build
|
|
description: 'Builds or retrieves cache of the selected toolchain'
|
|
|
|
inputs:
|
|
tools-version:
|
|
description: Which toolchain to build
|
|
required: false
|
|
default: 'riscv-tools'
|
|
cache-key:
|
|
description: Use this for caching
|
|
required: true
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/cache@v2
|
|
id: toolchain-build-id
|
|
with:
|
|
path: ${{ inputs.tools-version }}-install
|
|
key: ${{ inputs.cache-key }}
|
|
- name: run build toolchain if not cached
|
|
run: |
|
|
if [[ "${{ steps.toolchain-build-id.outputs.cache-hit }}" != 'true' ]]; then
|
|
echo "Cache miss on ${{ inputs.tools-version }}-install"
|
|
./.github/scripts/build-toolchains.sh ${{ inputs.tools-version }}
|
|
else
|
|
echo "cache hit do not generate build ${{ inputs.tools-version }}"
|
|
fi
|
|
shell: bash
|
|
|