-
Notifications
You must be signed in to change notification settings - Fork 902
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
(#3465) Allow building an MSI during outside of tagged commits. #3466
Conversation
8c9dbed
to
c8151ad
Compare
Edit: This is resolved by having the GitHub Action also pick up the MSI and include it with the artifacts. |
730a712
to
0495a4f
Compare
I have added a commit onto this PR that fixes up the Arguments decryption tests for the Download command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is working as expected atm given neither the GHA nor TeamCity builds seem to have generated the MSI. 🤔
Prepare-Chocolatey-Package previously would fail if not run as part of a target that also included copying the nuspec files. This commit makes the task dependency explicit so you can directly run Prepare-Chocolatey-Package.
Changed the logic for skipping an MSI build to skip it by default, and no longer depend on a tagged build. This will allow developers to generate an MSI by adding `--shouldBuildMsi=true`.
When running the builds in CI, we should generate the MSI as well. This will allow us to get an MSI for any build to test with if needed.
As with the previous commit, this adds the configuration for GitHub Actions. Thus allowing us to ensure the MSI is able to be built in GitHub Actions as well. When running the builds in CI, we should generate the MSI as well. This will allow us to get an MSI for any build to test with if needed.
When the tests are run against the download command, the second run was failing due to already having downloaded the package. Remove the download directory to ensure the tests function the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@corbob thank you for getting this fixed up! |
Description Of Changes
Update the Recipe used to default to not build an MSI. Update the CI configurations to allow building the MSI with the addition of the
--shouldBuildMsi=true
parameter.Motivation and Context
Ease the experience of making adjustments to the MSI. Allow us to get an MSI more regularly for testing.
Testing
./build.bat --target=Build-Msi
./build.bat --target=Build-Msi --shouldBuildMsi=true
code_drop/Artifacts
andcode_drop/MSIs/en-US
directories to confirm that an MSI was generated.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Fixes #3465