Skip to content

Commit

Permalink
add gitversion to linux build to version nuget correctly. rename builds
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jan 15, 2025
1 parent d76865e commit aa8ac29
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags: ["v3.*"] # Manual delivery on every 3.x tag

jobs:
build:
build-windows:
runs-on: windows-latest
outputs:
version: ${{ steps.set-version.outputs.version }}
Expand All @@ -27,10 +27,10 @@ jobs:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}

- name: ⚒️ Run GitVersion
- name: ⚒️ Run GitVersion on Windows
run: ./build.ps1 build-server-version

- name: ⚒️ Run build
- name: ⚒️ Run build on Linux
run: ./build.ps1

- name: ⬆️ Upload artifacts
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
name: output-*

test:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -87,12 +87,15 @@ jobs:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}

- name: ⚒️ Run Build and Pack on Linux
run: ./build.sh build-linux
- name: ⚒️ Run GitVersion on Linux
run: ./build.sh build-server-version

- name: ⚒️ Run tests
- name: ⚒️ Run tests on Linux
run: ./build.sh test-only

- name: ⚒️ Run Build and Pack on Linux
run: ./build.sh build-linux

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit aa8ac29

Please sign in to comment.