Skip to content

spm build CI job: changed to release build#1903

Merged
NachoSoto merged 2 commits into
mainfrom
spm-build-release
Sep 15, 2022
Merged

spm build CI job: changed to release build#1903
NachoSoto merged 2 commits into
mainfrom
spm-build-release

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

See #1860.

We want to ensure that the framework can be correctly compiled with SPM, so I think it makes sense to ensure that the RELEASE version of it can be compiled specifically.
We have a lot of coverage of DEBUG builds basically by most other CI jobs, so this provides coverage of the release build as well.

See #1902 for example for the type of change that could break release builds if not covered in CI.

See #1860.

We want to ensure that the framework can be correctly compiled with SPM, so I think it makes sense to ensure that the _RELEASE_ version of it can be compiled specifically.
We have a lot of coverage of `DEBUG` builds basically by most other CI jobs, so this provides coverage of the release build as well.

See #1902 for example for the type of change that could break release builds if not covered in CI.
@NachoSoto NachoSoto added the ci label Sep 13, 2022
@NachoSoto NachoSoto requested a review from a team September 13, 2022 00:31
Comment thread .circleci/config.yml
- run:
name: SPM Build
command: swift build
command: swift build -c release

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we just have both? A spm-build-debug and a spm-build-release jobs. But well, if this is just building the SDK, as you said, that might be covered there so I'm ok keeping only the release version, but maybe renaming the job is still worth it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I'll rename it.
Like I said in the description I think we cover debug builds a lot in every other job.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@NachoSoto NachoSoto merged commit f32b0c2 into main Sep 15, 2022
@NachoSoto NachoSoto deleted the spm-build-release branch September 15, 2022 17:32
NachoSoto pushed a commit that referenced this pull request Sep 23, 2022
**This is an automatic release.**

### Bugfixes
* `Purchases.beginRefundRequest`: ensured errors are `PublicError`
(#1913) via NachoSoto (@NachoSoto)
* `PurchaseTesterSwiftUI`: fixed macOS target (#1915) via NachoSoto
(@NachoSoto)
### Other Changes
* `SnapshotTesting`: require version 1.9.0 to keep supporting iOS 12/13
tests (#1931) via NachoSoto (@NachoSoto)
* Fixed `tvOS` tests (#1928) via NachoSoto (@NachoSoto)
* `pre-commit` hook: also verify leftover API keys in `PurchaseTester`
(#1914) via NachoSoto (@NachoSoto)
* `CircleCI`: changed iOS 12/13 to use Xcode 13 (#1918) via NachoSoto
(@NachoSoto)
* `PurchaseTesterSwiftUI`: removed unnecessary `UIApplicationDelegate`
(#1916) via NachoSoto (@NachoSoto)
* `CircleCI`: changed all jobs to use Xcode 14 (#1909) via NachoSoto
(@NachoSoto)
* `Atomic`: added unit test to verify `value`'s setter (#1905) via
NachoSoto (@NachoSoto)
* `spm build` CI job: changed to release build (#1903) via NachoSoto
(@NachoSoto)
* `StoreKitUnitTests`: compile on iOS 11.0+ (#1904) via NachoSoto
(@NachoSoto)
* `Purchases`: only expose testing data on `DEBUG` (#1902) via NachoSoto
(@NachoSoto)
* `Integration Tests`: added test to verify re-subscription behavior
(#1898) via NachoSoto (@NachoSoto)
* `IntegrationTests`: simplified `testExpireSubscription` to fix flaky
test (#1899) via NachoSoto (@NachoSoto)
* `Integration Tests`: actually verify that entitlement is active
(#1880) via NachoSoto (@NachoSoto)
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