-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from dwmkerr/build/pull-request-pipeline
build: pull request pipeline
- Loading branch information
Showing
6 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"release-type": "simple", | ||
"extra-files": [ | ||
"./source/SharpGL/SharedAssemblyInfo.cs" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters