Skip to content

Conversation

finestructure
Copy link
Member

@finestructure finestructure commented Aug 8, 2020

Fixes #606

What will happen when we merge this?

  • Once deployed to dev (automatic), linux processing will start for staging (albeit at a very slow pace, so we will likely not observe any of it for quite a while)
  • Once we tag and deploy on prod we will start linux processing for real and in volume

NB: Apparently the platform section on the package page is not driven by the allActive property. (The snapshots for PackageShow are unchanged.) This is obviously purely a display issue. We can either hold off on this PR while we fix this to make it a part of it or go ahead and start processing while we update the page. (now fixed)

/// Currently supported build platforms
static var allActive: [Self] {
[.ios, .macosSpm, .macosXcodebuild, .tvos, .watchos]
[.ios, .macosSpm, .macosXcodebuild, .linux, .tvos, .watchos]
Copy link
Member Author

@finestructure finestructure Aug 8, 2020

Choose a reason for hiding this comment

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

This determines the platform order in the build matrix on the build index page. I was thinking behind iOS and macOS but before tvOS & watchOS is a good place for it to appear.

@finestructure
Copy link
Member Author

This is ready to go but leaving it in Draft so we can coordinate merge and deploy.

}

var cells: [BuildResult<PlatformCompatibility>] { [ios, macos, tvos, watchos] }
var cells: [BuildResult<PlatformCompatibility>] { [ios, macos, linux, tvos, watchos] }
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 determines the order of the table columns on the package show page. Ideally those two were more tightly coupled or had the same source but that's not a trivial task due to different aggregation. Probably not worth losing sleep over unless we see a huge influx of platforms.

Copy link
Member

Choose a reason for hiding this comment

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

Yea I think this is fine, and I think I agree with the order. The only other option would be to put Linux on the right-hand side as it's quite distinct. I'm happy with it here though.

@finestructure finestructure marked this pull request as ready for review August 9, 2020 07:33
@finestructure
Copy link
Member Author

Off we go then :)

@finestructure finestructure merged commit 0b9ded6 into main Aug 9, 2020
@finestructure finestructure deleted the linux-builds branch August 9, 2020 07:34
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.

Add support for Linux builds

2 participants