Skip to content

Commit

Permalink
work on github build
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Aug 23, 2024
1 parent bfc6c27 commit 790f0cf
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 60 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: .NET Pull Request

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
dotnet restore src/S7CommPlusDriver
dotnet restore src/DriverTest
dotnet restore src/S7CommPlusGUIBrowser
- name: Build
run: |
dotnet build src/S7CommPlusDriver
dotnet build src/DriverTest
dotnet build src/S7CommPlusGUIBrowser
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.0.x
6.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore DotNetSiemensPLCToolBoxLibrary.sln
- name: Build
run: dotnet build DotNetSiemensPLCToolBoxLibrary.sln
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: .NET

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
dotnet restore src/S7CommPlusDriver
dotnet restore src/DriverTest
dotnet restore src/S7CommPlusGUIBrowser
- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1
with:
version: ${{ github.event.release.tag_name }}
assemblyVersion: ${{ github.event.release.tag_name }}
fileVersion: ${{ github.event.release.tag_name }}
informationalVersion: ${{ github.event.release.tag_name }}-${{ github.sha }}

- name: Build
run: |
dotnet build src/S7CommPlusDriver
dotnet build src/DriverTest
dotnet build src/S7CommPlusGUIBrowser
- name: Publish NuGet
# You may pin to the exact commit or the version.
# uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc
uses: brandedoutcast/[email protected]
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
60 changes: 0 additions & 60 deletions appveyor.yml

This file was deleted.

0 comments on commit 790f0cf

Please sign in to comment.