Skip to content

Commit 7ea7169

Browse files
committed
New CI work
1 parent 5a88d41 commit 7ea7169

3 files changed

Lines changed: 47 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,31 @@ on:
55
branches: ["main"]
66
pull_request:
77
branches: ["main"]
8-
workflow_call:
98

109
jobs:
1110
build:
12-
13-
runs-on: ${{ matrix.os }}
14-
1511
strategy:
1612
matrix:
1713
os: [ubuntu-latest, windows-latest, macos-latest]
1814
configuration: [Debug, Release]
1915
fail-fast: false
2016

17+
runs-on: ${{ matrix.os }}
18+
2119
steps:
22-
- uses: actions/checkout@v4
20+
- name: Clone the repo
21+
uses: actions/checkout@v4
2322
with:
2423
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2524

26-
- name: Setup .NET
25+
- name: Set up .NET
2726
uses: actions/setup-dotnet@v4
2827
with:
2928
dotnet-version: |
3029
9.0.x
3130
8.0.x
3231
33-
# Netfx testing on non-Windows requires mono
32+
# NetFX testing on non-Windows requires mono
3433
- name: Setup Mono
3534
if: runner.os == 'Linux'
3635
run: sudo apt-get install -y mono-devel

.github/workflows/release.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Release Process
2+
3+
The following process is used when publishing new releases to NuGet.org:
4+
5+
1. Ensure the CI workflow is fully green
6+
- Some of the integration tests are flaky and require re-running.
7+
- Once the state of the branch is known to be good, a release can proceed.
8+
9+
2. Identify the commit to be used for the release
10+
- A tag can be created during the Release process, but it can optionally be created ahead of time.
11+
- If created ahead of time, it should have the format of `v{major}.{minor}.{patch}-{suffix}`. Example: `v0.1.0-preview.2`, where the version prefix and suffix are used from `/src/Directory.Build.props`.
12+
- A fully green CI run should exist for the commit.
13+
14+
3.

.github/workflows/release.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,43 @@ on:
3131
types: [published]
3232

3333
jobs:
34-
run-ci:
35-
uses: ./.github/workflows/ci.yml
34+
build-all-configs:
35+
strategy:
36+
matrix:
37+
os: [ubuntu-latest, windows-latest, macos-latest]
38+
configuration: [Debug, Release]
39+
fail-fast: false
40+
41+
runs-on: ${{ matrix.os }}
42+
43+
steps:
44+
- name: Clone the repo
45+
uses: actions/checkout@v4
46+
47+
- name: Set up .NET
48+
uses: actions/setup-dotnet@v4
49+
with:
50+
dotnet-version: |
51+
9.0.x
52+
8.0.x
53+
54+
- name: Build
55+
run: dotnet build --configuration ${{ matrix.configuration }}
56+
57+
- name: Pack
58+
run: dotnet pack --configuration ${{ matrix.configuration }}
3659

3760
build-package:
3861
runs-on: windows-latest
39-
needs: run-ci
62+
needs: build-all-configs
4063

4164
env:
4265
version_suffix_args: ${{ github.event_name != 'release' && format('--version-suffix "{0}"', inputs.version_suffix_override || format('ci.{0}', github.run_number)) || '' }}
4366

4467
steps:
4568
- uses: actions/checkout@v4
4669

47-
- name: Setup .NET
70+
- name: Set up .NET
4871
uses: actions/setup-dotnet@v2
4972
with:
5073
dotnet-version: |

0 commit comments

Comments
 (0)