Commit Graph

3759 Commits

Author SHA1 Message Date
Aleksandr Chebotov
82d552ac56 [Ubuntu] Install latest Android cmdline-tools (#5639)
* [Ubuntu] Install latest Android cmdline-tools

* Move yq installation
2022-05-31 11:05:22 +03:00
Bryan Ricker
1938bdf841 [Ubuntu] add out-of-the-box SourceKitten support (#5634)
[SourceKitten](https://github.com/jpsim/SourceKitten), a popular Swift
library for interacting with SourceKit, needs to know (or be told) the
location of the sourcekitd framework. SourceKitten is somewhat
[ubiquitous](https://github.com/jpsim/SourceKitten#projects-built-with-sourcekitten);
most Swift projects I've seen or worked on used SourceKitten in some
way.

On macOS, the sourcekit framework is baked-in to the Xcode toolchain(s) and
therefore its location is generally known. On Linux, the location of the
sourcekit framework is wherever swift is installed, which is unknown to
libraries like SourceKitten.

SourceKitten searches for the sourcekit framework in [a few
locations](f7cf1e3b63/Source/SourceKittenFramework/library_wrapper.swift (L51-L104)),
but it's unable to infer the location of the framework on these ubuntu
images. The result when attempting to run any SourceKitten-based tool in
Github Actions on an ubuntu VM is the following error:

```
SourceKittenFramework/library_wrapper.swift:31: Fatal error: Loading libsourcekitdInProc.so failed
/home/runner/work/_temp/cb002a5e-1916-4e05-ba4d-f70ad3bb2266.sh: line 1:  3944 Illegal instruction     (core dumped) mint run swiftlint .
```

(to be clear, this error is not specific to the Github Actions ubuntu
VMs. The same error occurs on any Ubuntu system).

Individual users can work around this by setting the following
environment variable:

```
LINUX_SOURCEKIT_LIB_PATH="/usr/share/swift/usr/lib"
```

This is not a good workaround for the following reasons:

1. The end user doesn't necessarily know where swift is installed.
2. A change to the location of the swift installation would break this
   workaround.
3. The error will occur virtually 100% of the time on a user's first
   attempt to run SourceKitten on ubuntu, and takes at least a
   few minutes to troubleshoot. This will quickly add up to a
   non-trivial amount of lost productivity.

So, anyways, my proposal is to just link sourcekitd to a location where
SourceKitten will find it, so most developers don't have to think about it.
`LINUX_SOURCEKIT_LIB_PATH` can be defined by the user if they have an
unusual setup.

Alternative:

- Don't symlink, add `LINUX_SOURCEKIT_LIB_PATH` to `/etc/environment`.
2022-05-31 08:50:57 +02:00
Aleksandr Chebotov
b07aceb7a4 [Windows] Install parcel after python3 (#5629) 2022-05-31 03:24:33 +04:00
Blake
f61057f208 fix script (#5644) 2022-05-30 23:41:16 +02:00
Aleksandr Chebotov
f4e9588993 [Windows] Install latest Android cmdline-tools (#5619)
* Install latest Android cmdline-tools

* Use Get-ToolsetContent

* Fix variable typo

* replace variable

* Fix Windows 2016
2022-05-30 16:39:37 +02:00
Mikhail Koliada
47e8783e7e [macOS] deprecate xcode 13.2 on Big Sur (#5638) 2022-05-30 15:49:56 +02:00
jeffpuckett
520f852a21 Add option to auto clean up packer resources if there is an error during packer image creation (#5635)
* Add option to auto clean up packer resources if there is an error during packer image creation

* Add option to auto clean up packer resources if there is an error during packer image creation

* Add option to auto clean up packer resources if there is an error during packer image creation

Co-authored-by: Jeff Puckett <jpuckett@yprime.com>
2022-05-30 14:40:06 +02:00
Larissa Fortuna
a814bcd513 Adding beta indicator (#5628)
Ubuntu 22 and macOS12 are in beta - we need to indicate that here.
2022-05-28 09:14:05 +02:00
Mikhail Timofeev
0d30c1390d Downgrade parcel to 2.5.0 (#5627) 2022-05-27 15:50:29 +03:00
github-actions[bot]
6b6c1beded macOS 10.15 (20220523 update) (#5604)
* Updating readme file for macOS-10.15 version 20220523.3

* Update macos-10.15-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-27 11:34:52 +00:00
Mikhail Timofeev
992c2d3508 Fix software report output for cargo audit package (#5625) 2022-05-27 13:01:49 +03:00
Mikhail Timofeev
3c0d3f8709 Fix software report for cargo audit (#5624) 2022-05-27 11:14:16 +03:00
Mikhail Timofeev
c61cbbf296 [Ubuntu] Add java dependent tools back to ubuntu 22 (#5618)
* Get back kotlin and selenium

* Get back leiningen and android tools
2022-05-27 09:46:59 +03:00
Aleksandr Chebotov
1d519b89d7 [macOS] Set Visual Studio 2022 for Mac by default (#5614)
* Set Visual Studio 2022 for Mac by default

* add isDefault
2022-05-26 18:05:57 +03:00
github-actions[bot]
bf4c35eee5 Updating readme file for macOS-12 version 20220523.1 (#5596)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 13:09:41 +00:00
github-actions[bot]
0f372a0a73 macOS 11 (20220523 update) (#5605)
* Updating readme file for macOS-11 version 20220523.2

* Update macos-11-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 13:01:55 +00:00
github-actions[bot]
5db9b2ac4c Updating readme file for win19 version 20220522.1 (#5599)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 11:18:36 +00:00
github-actions[bot]
189927b46f Updating readme file for win22 version 20220522.1 (#5588)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 10:48:15 +00:00
Igor Boskovic
65955e2fb1 image build issue (#5613) 2022-05-26 11:53:27 +02:00
Mikhail Timofeev
eabc37ce41 Add java tools installation to Ubuntu22 (#5612) 2022-05-25 23:11:06 +03:00
Mikhail Timofeev
9e72341e34 Add clang 13&14 instead of 10&11, make 14 default (#5610) 2022-05-25 20:28:50 +03:00
Mikhail Timofeev
4393b58dce Get back container tools on Ubuntu 18&20 (#5611) 2022-05-25 19:25:12 +03:00
Dusko Dobranic
102af04076 [macOS] Fix cargo audit version in software report (#5606) 2022-05-25 17:04:34 +03:00
Mikhail Timofeev
7a7fafda99 [macOS] Add virtualbox to macOS-12 (#5594)
* Add virtualbox to macOS-12

* Fix Get_OSVersion function as isBigSur didn't work

* Use proper comparison
2022-05-24 22:48:57 +03:00
Aleksandr Chebotov
12cbf387ca Update allowed_inbound_ip_addresses default condition (#5602) 2022-05-24 19:40:15 +03:00
Aleksandr Chebotov
c3fb682f73 [ImageGen] Fix allowed_inbound_ip_addresses error (#5597)
* Fix allowed_inbound_ip_addresses error

* Add space
2022-05-24 14:30:13 +03:00
github-actions[bot]
de68d8faea Updating readme file for ubuntu22 version 20220522.1 (#5589)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-24 08:41:22 +00:00
juliancarrivick
64e497aba9 Add clang-tidy to Ubuntu images (#5541) 2022-05-23 16:50:28 +03:00
Shohei Maeda
f8f8c93509 [Ubuntu] Use new Hashicorp Releases API (#5587) 2022-05-23 16:47:07 +03:00
Mikhail Koliada
1996a78b43 fix Ubuntu 22.04 template extension (#5591) 2022-05-23 15:04:06 +03:00
Mikhail Koliada
e4d58452f4 [Ubuntu] Rework podman and tools installation (#5580) 2022-05-20 16:40:31 +03:00
github-actions[bot]
984b0a83de Updating readme file for macOS-10.15 version 20220515.1 (#5552)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-20 11:24:00 +00:00
Aleksandr Chebotov
c93738bd53 Replace client_secret to client_cert_path (#5579) 2022-05-20 13:51:55 +03:00
Mikhail Timofeev
dc7d03e49d [Ubuntu] Make software and release URLs using variables instead of hardcode (#5572)
* Make urls using variables instead of hardcode

* Simplify versions retrieval
2022-05-19 21:47:48 +02:00
Aleksandr Chebotov
0aa72a7eba Add appcenter-cli (#5571) 2022-05-19 19:53:47 +03:00
github-actions[bot]
0dd8232afe Updating readme file for macOS-11 version 20220517.4 (#5568)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 14:45:03 +00:00
Igor Boskovic
9a469f0216 add Ubuntu 22.04 badge readme url (#5570) 2022-05-19 17:27:55 +03:00
github-actions[bot]
8f236daf09 Updating readme file for win22 version 20220515.1 (#5558)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 12:41:29 +00:00
github-actions[bot]
17ccb0bc75 Updating readme file for win19 version 20220515.1 (#5551)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 09:11:58 +00:00
github-actions[bot]
ca7fca068a Updating readme file for ubuntu20 version 20220515.1 (#5546)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 08:08:45 +00:00
AlexanderGitin
e3079f0476 [Windows] Add safe directory to gitconfig (#5453) 2022-05-19 11:07:43 +03:00
github-actions[bot]
9aa72c4482 Updating readme file for ubuntu18 version 20220515.1 (#5545)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 07:46:58 +00:00
github-actions[bot]
74d2bc3b8b Ubuntu 22.04 (20220515 update) (#5547)
* Updating readme file for ubuntu22 version 20220515.1

* Update Ubuntu2204-Readme.md

Fix cargo outdated version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-18 20:57:08 +00:00
Aleksandr Chebotov
82d69fd301 [macOS] Add VSForMac 2022 Preview (#5561) 2022-05-18 17:49:37 +03:00
Aleksandr Chebotov
536cfa24b0 [Ubuntu] Revert powershell fix for Ubuntu 22.04 (#5567)
* Revert powershell fix for Ubuntu 22.04

* Move libssl1.1 dependency

* fix typo

* remove comment
2022-05-18 15:39:37 +03:00
github-actions[bot]
20158a6906 Updating readme file for macOS-12 version 20220516.1 (#5557)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-17 11:53:43 +00:00
Aleksandr Chebotov
5f0efafcaa Add Microsoft.VisualStudio.Component.VC.Runtimes.ARM.Spectre (#5559) 2022-05-17 14:39:04 +03:00
Mikhail Koliada
260acc1b51 [macOS] Add Xamarin.Android 12.1 & bump bundle to 6.12.16 (#5548) 2022-05-16 22:50:16 +03:00
Dusko Dobranic
bc7bb8bf96 [Ubuntu] Fix cargo outdated version in report (#5550) 2022-05-16 20:41:45 +03:00
Aleksandr Chebotov
17d10f6889 Add amazon-ecr-credential-helper (#5544) 2022-05-16 18:49:51 +03:00