Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a bespoke windows packager #1345

Merged
merged 15 commits into from
Jun 29, 2024
Merged

Create a bespoke windows packager #1345

merged 15 commits into from
Jun 29, 2024

Conversation

mattgodbolt
Copy link
Member

@mattgodbolt mattgodbolt commented Jun 23, 2024

@partouf any thoughts? I tested by running this as an on: pull with a hardcoded URL.

One thing...if we do "latest" it will upload some unknowable files, e.g. I just ran it and got 14.41.33923-14.41.33923.0.zip - which then...we can't have a "latest" easily without somehow knowing the version number (and we'd end up with lots of S3 zipfiles).

That said it's a start, and I think would work for non-latest OK. But I'd appreciate your faults. Part of #1331

Example of the resulting ZIPfile:

bollo:~/d/c/infra (mg/infra_windows_install|✔) 1.6s $ aws s3 cp s3://compiler-explorer/opt-nonfree/msvc/14.41.33923-14.41.33923.0.zip /tmp/
download: s3://compiler-explorer/opt-nonfree/msvc/14.41.33923-14.41.33923.0.zip to ../../../../../tmp/14.41.33923-14.41.33923.0.zip
bollo:~/d/c/infra (mg/infra_windows_install|✚1) 17.2s $ cd /tmp/
bollo:/tmp $ unzip -l 14.41.33923-14.41.33923.0.zip  | head -10
Archive:  14.41.33923-14.41.33923.0.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2024-06-24 01:22   14.41.33923-14.41.33923.0/
        0  2024-06-24 01:23   14.41.33923-14.41.33923.0/Auxiliary/
     1252  2024-06-24 01:22   14.41.33923-14.41.33923.0/Auxiliary/Microsoft.VC.Internal.CL.Features.props
      792  2024-06-24 01:22   14.41.33923-14.41.33923.0/Auxiliary/Microsoft.VC.Internal.Link.Features.props
      842  2024-06-24 01:22   14.41.33923-14.41.33923.0/Auxiliary/Microsoft.VC.Paths.ARM.OneCore.props
     1250  2024-06-24 01:22   14.41.33923-14.41.33923.0/Auxiliary/Microsoft.VC.Paths.ARM.props
     1060  2024-06-24 01:23   14.41.33923-14.41.33923.0/Auxiliary/Microsoft.VC.Paths.ARM.Store.props

so I think it makes it right.

@mattgodbolt mattgodbolt requested a review from partouf June 24, 2024 01:38
@@ -436,6 +436,7 @@ data "aws_iam_policy_document" "CeBuilderStorageAccess" {
actions = ["s3:*"]
resources = [
"${aws_s3_bucket.compiler-explorer.arn}/opt/*",
"${aws_s3_bucket.compiler-explorer.arn}/opt-nonfree/*",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was also needed, of course.

@mattgodbolt mattgodbolt marked this pull request as ready for review June 24, 2024 01:38
@mattgodbolt mattgodbolt changed the title Placeholder where I will experiment with MS builds Create a bespoke windows packager Jun 24, 2024
@mattgodbolt
Copy link
Member Author

We may wish to add Microsoft.VisualStudio.Component.VC.ASAN (one of the "recommended"), we might need to enable it somehow?

@mattgodbolt mattgodbolt merged commit 4baaf18 into main Jun 29, 2024
4 checks passed
@mattgodbolt mattgodbolt deleted the mg/infra_windows_install branch June 29, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants