aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/action.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-21 19:11:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-21 19:11:01 +0300
commitbbe81e2da0986c4d563914ff42d973c99008ad72 (patch)
tree23afedd882ac65b6c6aa7a4bb6c0282d34cfe853 /action.yml
parentREADME: update (diff)
downloadsetup-clang-bbe81e2da0986c4d563914ff42d973c99008ad72.tar.gz
setup-clang-bbe81e2da0986c4d563914ff42d973c99008ad72.zip
version 13 has been releasedv1.2
Diffstat (limited to 'action.yml')
-rw-r--r--action.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/action.yml b/action.yml
index 9565ab1..0bc9fc3 100644
--- a/action.yml
+++ b/action.yml
@@ -146,6 +146,7 @@ runs:
$pkg_clang = 'clang'
$pkg_llvm = 'llvm'
$pkg_gxx = 'g++'
+ $additional_deps = @()
if (!$latest) {
$pkg_version = Format-UpstreamVersion $version
@@ -156,12 +157,23 @@ runs:
$clang = "$clang-$pkg_version"
$clangxx = "$clangxx-$pkg_version"
+
+ if ($pkg_version -eq '13') {
+ # On both Bionic and Focal, the following error occurs otherwise:
+ #
+ # The following packages have unmet dependencies:
+ # llvm-13 : Depends: libomp5-13 (>= 8) but it is not going to be installed
+ # E: Unable to correct problems, you have held broken packages.
+ $additional_deps += 'libomp5-13'
+ }
}
if (!$x64) {
$pkg_gxx = 'g++-multilib'
}
+ $packages = $pkg_clang,$pkg_llvm,$pkg_gxx
+ $packages += $additional_deps
- Install-Package $pkg_clang $pkg_llvm $pkg_gxx
+ Install-Package $packages
} elseif ($cygwin_host) {
if (!$x64) {
echo @'