From c87c3d70e77c19f07bef04cae5843d242e71f3a1 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 17 Jan 2025 12:25:43 +0100 Subject: [PATCH 1/2] Expect failed jobs. --- .github/workflows/Pipeline.yml | 42 +++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 853826b..82dcb0d 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -28,33 +28,37 @@ jobs: fail-fast: false matrix: os: - - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-20.04', runtime: '', backend: 'mcode'} # not supported - - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'xcode'} # not supported - - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'mcode'} - - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'llvm'} + - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'mcode' } + - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'llvm' } - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'llvm-jit'} - - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'gcc'} - - {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'gcc'} # not supported - - {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'mcode'} - - {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'llvm'} - - {icon: '🍏', name: 'macOS', image: 'macos-14', runtime: '', backend: 'llvm'} - - {icon: '🪟', name: 'Windows', image: 'windows-2022', runtime: '', backend: 'mcode'} - - {icon: '🪟⬛', name: 'Windows', image: 'windows-2022', runtime: 'mingw32', backend: 'mcode'} # not supported - - {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'mcode'} - - {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'llvm'} + - {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'gcc' } + - {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'mcode' } + - {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'llvm' } + - {icon: '🍏', name: 'macOS', image: 'macos-14', runtime: '', backend: 'llvm' } + - {icon: '🪟', name: 'Windows', image: 'windows-2022', runtime: '', backend: 'mcode' } + - {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'mcode' } + - {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'llvm' } - {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'llvm-jit'} - - {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'mcode'} - - {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'llvm'} + - {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'mcode' } + - {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'llvm' } - {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'llvm-jit'} version: # - {install: '5.0.0', expected: '5.0.0'} # - {install: 'latest', expected: '5.0.0'} - {install: 'nightly', expected: '5.0.0-dev'} + option: + - {can-fail: false} include: - - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'mcode'}} - - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'llvm'}} - - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'mcode'}} - - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'llvm'}} + - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'mcode'}, option: {can-fail: false}} + - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟦', name: 'Windows', image: 'windows-2022', runtime: 'mingw64', backend: 'llvm'}, option: {can-fail: false}} + - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'mcode'}, option: {can-fail: false}} + - {version: {install: '4.1.0', expected: '4.1.0'}, os: {icon: '🪟🟨', name: 'Windows', image: 'windows-2022', runtime: 'ucrt64', backend: 'llvm'}, option: {can-fail: false}} + - {version: {install: 'nightly', expected: '5.0.0'}, os: {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-20.04', runtime: '', backend: 'mcode'}, option: {can-fail: true }} + - {version: {install: 'nightly', expected: '5.0.0'}, os: {icon: '🐧', name: 'Ubuntu', image: 'ubuntu-24.04', runtime: '', backend: 'xcode'}, option: {can-fail: true }} + - {version: {install: 'nightly', expected: '5.0.0'}, os: {icon: '🍎', name: 'macOS', image: 'macos-13', runtime: '', backend: 'gcc' }, option: {can-fail: true }} + - {version: {install: 'nightly', expected: '5.0.0'}, os: {icon: '🪟⬛', name: 'Windows', image: 'windows-2022', runtime: 'mingw32', backend: 'mcode'}, option: {can-fail: true }} + + continue-on-error: ${{ matrix.option.can-fail }} defaults: run: From c6a6a92dbe7610f38117339a795e5db502d9f8db Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 17 Jan 2025 14:12:31 +0100 Subject: [PATCH 2/2] Added badges. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 76a644d..e77899e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![GitHub Workflow - Build and Test Status](https://img.shields.io/github/actions/workflow/status/ghdl/setup-ghdl/.github%2Fworkflows%2FPipeline.yml?branch=dev&logo=githubactions)](https://GitHub.com/ghdl/setup-ghdl/actions/workflows/Pipeline.yml) +[![Sourcecode License](https://img.shields.io/badge/code-MIT%20License-green?longCache=true&style=flat-square&logoColor=fff)](LICENSE.md) + # Setup GHDL in GitHub Action Workflows This composite action, installs GHDL in a GitHub Action's workflow job.