This PR adds GitHub Actions workflows to run alongside the existing Azure Pipelines configuration.
Due to GitHub App permission restrictions, the workflow files are created in the root directory. Please move these files to .github/workflows/ after merging:
github-actions-ci.yml→.github/workflows/ci.ymlgithub-actions-pr.yml→.github/workflows/pr.yml
- Triggers on pushes to master, release/, and maintenance/ branches
- Builds with .NET nanoFramework support using
nanoframework/nanobuild@v1action - Runs tests and uploads coverage to codecov.io
- Publishes NuGet packages to nuget.org (only on master branch)
- Uses Windows runner to match Azure Pipelines configuration
- Triggers on pull requests to master, release/, and maintenance/ branches
- Same build and test process as CI workflow
- Publishes test results as PR checks
- Uploads test coverage to codecov.io
- No NuGet publishing for PRs
The key challenge mentioned in the issue was .NET nanoFramework support. This is handled using the nanoframework/nanobuild@v1 GitHub Action, which is the official GitHub Actions equivalent of the Azure Pipelines InstallNanoMSBuildComponents@1 task.
- Both workflows use the existing PowerShell build script (
Build/build.ps1) with the-IncludeNanoFrameworkflag - Secrets needed:
CODECOV_TOKENandNUGET_ORG_APIKEY(should already be configured) - The workflows are designed to run alongside Azure Pipelines for comparison
- Azure Pipelines configuration files remain unchanged as requested
- Move the workflow files to
.github/workflows/ - Test both workflows to ensure they work correctly
- Compare results with Azure Pipelines
- Make any necessary adjustments based on testing