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

Creating Continuous Integration workflow #28

Merged
merged 55 commits into from
Oct 8, 2022
Merged

Creating Continuous Integration workflow #28

merged 55 commits into from
Oct 8, 2022

Conversation

gbakeman
Copy link
Contributor

Creating an automated build process for WinNUT to ease testing and distribution. See associated issue for more info.

First attempt at this, probably many more to come.
Maybe tabs are an issue? Also tweaked output name.
For when I only need to test something on the website.
Upgrade targeted .Net Framework in AGauge project from 4.0 to 4.7.2 as with the rest of the project. Appears to build fine.
This is a bit unusual. Toasts only work on Windows 10+, so this shouldn't even be compiled then.
…d target

Trying to split builds between systems.
And making settings for compiler-defined build for Windows 10 and up.
Feels less hacky than trying to compile in references to random libraries in system folders. Also hoping this means we won't need separate builds for <Windows 10. Fingers crossed this compiles on GitHub.
- Added NuGet package reference to Microsoft.Toolkit.Uwp.Notifications 7.1.2
- Reverted compiler ifdefs in favor of the OS check to enable toasts.
- Commented out most of the ToastPopup notification class in reference to MS Docs article for sending toasts (see comment on class)
@gbakeman gbakeman added bug Something isn't working enhancement New feature or request labels Sep 29, 2022
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Sep 29, 2022
@gbakeman gbakeman self-assigned this Sep 29, 2022
Setup project apparently requires building with devenv. I've no idea if this'll work. Also added an environment variable for the solution file.
Might be able to get away with just specifying the path to the devenv executable. Also forcing build runner to match visual studio version that I'm using.
According to the sample, you don't need quotes for environment variables.
Probably why I was having syntax errors: powershell is the default shell on Windows runners.
It looks like getting the installer to build is more of a headache than I need right now. Reverting all changes back to when I was using msbuild (excluding the environment variable and using the 2019 builder), and building in Debug configuration for now.
Doesn't seem necessary anymore.
MSBuild supports package restoration, let's try that and see if it won't error on the Setup project. Also setting working directory for commands, and removing Setup artifact packaging.
Renaming (git mv'ing) main GUI client project folder for consistency purposes.
Fixing a typo in the solution file that was probably causing an error when trying to find the build output files. Also moving the .editorconfig file to the parent directory.
Trying to tie the build number to the action run amount.
Also trying to learn how to output env variables.
PowerShell tries to start in the project directory (which wasn't checked out yet)
Trying to define it in the workflow now.
Getting closer...?
Could it have been this easy??
Just keep it simple. Also make env var for build output.
Being more descriptive, and troubleshooting
Make relative to working directory
Made variable syntax correct and consistent, also updated the build name to be more descriptive.
Not sure what working-directory is even doing at this point.
Removing unused steps as well.
Making sure to remove the old Win10 configuration from the setup project. Also verify correct release building.
@gbakeman gbakeman merged commit 314e651 into Dev-2.2 Oct 8, 2022
@gbakeman gbakeman deleted the workflows branch October 8, 2022 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting up Continuous Integration, GitHub Actions and Automated Builds
1 participant