Skip to content

Commit

Permalink
Build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
CorruptComputer committed Jan 21, 2024
1 parent 0454743 commit f8c1527
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 17 deletions.
65 changes: 48 additions & 17 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ env:
DOTNET_VERSION: '8.0.x'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Setup
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Build
- name: Build
run: |
dotnet build
test:
name: Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,3 +43,51 @@ jobs:
dotnet build --no-incremental
dotnet test --collect:"XPlat Code Coverage;Format=opencover"
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
# Setup
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Build
- name: Build
run: |
dotnet publish --configuration Release --runtime linux-x64 --self-contained true --property PublishDir=~/publish
# Upload
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: BaldersGait-linux-x64
path: ~/publish

build-windows:
name: Build Windows
runs-on: windows-latest
steps:
# Setup
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Build
- name: Build
run: |
dotnet publish --configuration Release --runtime win-x64 --self-contained true --property PublishDir=publish
# Upload
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: BaldersGait-win-x64
path: D:\a\BaldersGait\BaldersGait\BaldersGait\publish\
1 change: 1 addition & 0 deletions BaldersGait.UnitTests/BaldersGait.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f8c1527

Please sign in to comment.