diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 00e22a1..93fa803 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -12,12 +12,16 @@ jobs: fail-fast: false matrix: os: - - {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'backend': 'mcode'} - - {'icon': '🍏', 'name': 'macOS', 'image': 'macos-14', 'backend': 'mcode'} - - {'icon': '🪟', 'name': 'Windows', 'image': 'windows-2022', 'backend': 'mcode'} + - {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'shell': 'bash', 'backend': 'mcode'} + - {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'shell': 'bash', 'backend': 'llvm'} + - {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'shell': 'bash', 'backend': 'llvm-jit'} + - {'icon': '🐧', 'name': 'Ubuntu', 'image': 'ubuntu-24.04', 'shell': 'bash', 'backend': 'gcc'} + - {'icon': '🍎', 'name': 'macOS', 'image': 'macos-13', 'shell': 'bash', 'backend': 'mcode'} + - {'icon': '🍏', 'name': 'macOS', 'image': 'macos-14', 'shell': 'bash', 'backend': 'llvm'} + - {'icon': '🪟', 'name': 'Windows', 'image': 'windows-2022', 'shell': 'bash', 'backend': 'mcode'} defaults: run: - shell: bash + shell: ${{ matrix.os.shell }} steps: - name: Setup GHDL @@ -25,3 +29,8 @@ jobs: with: version: nightly backend: ${{ matrix.os.backend }} + investigate: true + + - name: Verify + run: | + ghdl --version diff --git a/action.yml b/action.yml index 65bae0c..479a738 100644 --- a/action.yml +++ b/action.yml @@ -46,6 +46,9 @@ runs: if: runner.os == 'Linux' && runner.arch == 'X64' shell: bash run: | + ANSI_LIGHT_BLUE="\e[94m" + ANSI_NOCOLOR=$'\x1b[0m' + source /etc/lsb-release if [[ "${DISTRIB_RELEASE}" != "24.04" ]]; then @@ -82,16 +85,20 @@ runs: mkdir -p "${{ inputs.install-directory }}" cd "${{ inputs.install-directory }}" - printf "Downloading asset and extracting tar.gz file ...\n" - curl -L "https://github.com/ghdl/ghdl/releases/download/${VERSION_IN_URL}/ghdl-${{ inputs.backend }}-${VERSION_IN_FILE}-ubuntu${DISTRIB_RELEASE}-x86_64.tar.gz" | tar -xz --strip-components 1 - ( - cd bin - pwd - ls -lAh . - ) - # tree . - printf "Installing dependencies from './ubuntu.requirements' using 'apt-get' ...\n" + DOWNLOAD_URL="https://github.com/ghdl/ghdl/releases/download/${VERSION_IN_URL}/ghdl-${{ inputs.backend }}-${VERSION_IN_FILE}-ubuntu${DISTRIB_RELEASE}-x86_64.tar.gz" + printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Downloading asset and extracting '${DOWNLOAD_URL}' file ..." + curl -L "${DOWNLOAD_URL}z" | tar -xz --strip-components 1 + printf "::endgroup::\n" + + if [[ "${{ inputs.investigate }}" == "true" ]]; then + printf "::group::${ANSI_LIGHT_BLUE}%s.${ANSI_NOCOLOR}\n" "Content of '$(pwd)'" + tree -pash . + printf "::endgroup::\n" + fi + + printf "::group::${ANSI_LIGHT_BLUE}%s.${ANSI_NOCOLOR}\n" Installing dependencies from './ubuntu.requirements' using 'apt-get' ..." sudo xargs --no-run-if-empty -a ./ubuntu.requirements -- apt-get install -y --no-install-recommends + printf "::endgroup::\n" ) printf "Setting environment variable 'GHDL_PREFIX' ...\n" @@ -187,7 +194,7 @@ runs: exit 1 fi - if [[ "${{ inputs.backend }}" != "mcode" ]]; then + if [[ "${{ inputs.backend }}" != "llvm" ]]; then printf "::error title=%s::%s\n" "setup-ghdl" "Unsupported GHDL backend '${{ inputs.backend }}'." exit 1 else