Skip to content

Commit

Permalink
Merge pull request #221 from dwmkerr/build/pull-request-pipeline
Browse files Browse the repository at this point in the history
build: pull request pipeline
  • Loading branch information
dwmkerr committed Apr 28, 2023
2 parents f57f530 + 01f817c commit df174ff
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# The 'main' workflow is used to create the 'Release Please' pull
# request. This PR is opened when we have a new commit to main.
# See:
# https://github.com/googleapis/release-please
name: main
on:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-20.04
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-name: sharpgl
47 changes: 47 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Validate Pull Request

on:
pull_request:

jobs:
pull-request:
strategy:
matrix:
windows-version:
- windows-2019
- windows-2022
visual-studio-version:
- 16.11
- 17.3
# The GitHub Actions Windows images do not contain multiple versions of
# msbuild, so we need to exclude certain combinations.
exclude:
- windows-version: windows-2019
visual-studio-version: 17.3
- windows-version: windows-2022
visual-studio-version: 16.11
runs-on: ${{ matrix.windows-version }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
vs-version: ${{ matrix.visual-studio-version }}
msbuild-architecture: x64

- name: Build
run: ./source/SharpGL/build.ps1

- name: Test
run: ./source/SharpGL/test.ps1

# Upload the artifacts folder.
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
./source/SharpGL/artifacts/
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ignore thumbnails created by windows
# Ignore thumbnails created by windows / MacOS.
Thumbs.db
#Ignore files build by Visual Studio
.DS_Store
# Ignore files build by Visual Studio
*.user
*.aps
*.pch
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Check out the [Samples](https://github.com/dwmkerr/sharpgl/wiki/Samples), they'r
<!-- vim-markdown-toc GFM -->

* [Getting Started](#getting-started)
* [Compatibility](#compatibility)
* [Developer Guide](#developer-guide)
* [Releasing](#releasing)
* [Sample Applications](#sample-applications)
Expand Down Expand Up @@ -80,9 +81,9 @@ All components support the .NET Framework 4.0 onwards, .NET Core 3.0 onwards and
| `SharpGL.WinForms` | 4.0+ | 3.0+ | 2.1+ |
| `SharpGL.WPF` | 4.0+ | 3.0+ | 2.1+ |

**Platform Comptability**
**Platform Compatibility**

Compatability across platforms is supported via framework specific components.
Compatibility across platforms is supported via framework specific components.

| Platform | Support |
|----------|---------------|
Expand Down
6 changes: 6 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"release-type": "simple",
"extra-files": [
"./source/SharpGL/SharedAssemblyInfo.cs"
]
}
2 changes: 1 addition & 1 deletion source/SharpGL/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Runtime.InteropServices;

[assembly: AssemblyProduct("SharpGL")]
[assembly: AssemblyCopyright("Copyright © Dave Kerr 2020")]
[assembly: AssemblyCopyright("Copyright © Dave Kerr 2023")]

// Version information for an assembly consists of the following four values:
//
Expand Down

0 comments on commit df174ff

Please sign in to comment.