-
Notifications
You must be signed in to change notification settings - Fork 3
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 #179 from neurogears/release-automation
Add build CI workflow with package artifacts
- Loading branch information
Showing
101 changed files
with
97 additions
and
20 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,56 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
ContinuousIntegrationBuild: true | ||
CiRunNumber: ${{ github.run_number }} | ||
CiRunPushSuffix: ${{ github.ref_name }}-ci${{ github.run_number }} | ||
CiRunPullSuffix: pull-${{ github.event.number }}-ci${{ github.run_number }} | ||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
configuration: [debug, release] | ||
os: [ubuntu-latest, windows-latest] | ||
include: | ||
- os: windows-latest | ||
configuration: release | ||
collect-packages: true | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Restore | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore --configuration ${{ matrix.configuration }} | ||
|
||
- name: Pack | ||
id: pack | ||
if: matrix.collect-packages | ||
env: | ||
CiBuildVersionSuffix: ${{ github.event_name == 'push' && env.CiRunPushSuffix || env.CiRunPullSuffix }} | ||
run: dotnet pack --no-build --configuration ${{ matrix.configuration }} | ||
|
||
- name: Collect packages | ||
uses: actions/upload-artifact@v4 | ||
if: matrix.collect-packages && steps.pack.outcome == 'success' && always() | ||
with: | ||
name: Packages | ||
if-no-files-found: error | ||
path: artifacts/package/${{matrix.configuration}}/** |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
.vs | ||
bin | ||
obj | ||
Packages | ||
*.user | ||
*.exe | ||
*.exe.settings | ||
*.exe.WebView2 | ||
.vs/ | ||
/artifacts/ | ||
.bonsai/Packages/ | ||
.bonsai/*.exe | ||
.bonsai/*.exe.settings | ||
.bonsai/*.exe.WebView2/ |
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
....Onix.Design/OpenEphys.Onix.Design.csproj → ....Onix.Design/OpenEphys.Onix.Design.csproj
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
<Project> | ||
<PropertyGroup Condition="'$(ContinuousIntegrationBuild)' != 'true'"> | ||
<!-- When making local builds DevVersion can be overridden to generate multiple local versions --> | ||
<DevVersion Condition="'$(DevVersion)' == ''">0</DevVersion> | ||
|
||
<VersionSuffix>dev$(DevVersion)</VersionSuffix> | ||
<_FileVersionRevision>$([MSBuild]::Add(60000, $(DevVersion)))</_FileVersionRevision> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(ContinuousIntegrationBuild)' == 'true'"> | ||
<VersionSuffix>$(CiBuildVersionSuffix)</VersionSuffix> | ||
<_FileVersionRevision>0</_FileVersionRevision> | ||
<_FileVersionRevision Condition="'$(CiBuildVersionSuffix)' != '' and '$(CiRunNumber)' != ''">$(CiRunNumber)</_FileVersionRevision> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<!-- Force malformed versions to be an error --> | ||
<WarningsAsErrors>$(WarningsAsErrors);CS7035</WarningsAsErrors> | ||
</PropertyGroup> | ||
</Project> |