Skip to content

Commit e6dfd22

Browse files
committed
yaml-s
1 parent e931806 commit e6dfd22

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/Prerelease.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
workflow_dispatch:
88
inputs:
99
reason:
10-
description: 'Why run?'
10+
description: "Why run?"
1111
dotnet-version:
12-
description: 'Version of .NET SDK to use'
13-
default: '9.0.x'
12+
description: "Version of .NET SDK to use"
13+
default: "9.0.x"
1414

1515
env:
1616
DOTNET_NOLOGO: true
@@ -111,7 +111,7 @@ jobs:
111111
- name: Publish prerelease to NuGet
112112
if: steps.tagcheck.outputs.already_tagged == 'false'
113113
env:
114-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
114+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
115115
run: |
116116
if [ -z "${NUGET_API_KEY}" ]; then
117117
echo "NUGET_API_KEY not configured"; exit 1

.github/workflows/Release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ on:
3535
default: "./benchmarks/UlidType.Benchmarks/UlidType.Benchmarks.csproj"
3636
required: true
3737

38+
concurrency:
39+
group: ci-${{ github.ref }}
40+
cancel-in-progress: true
41+
3842
env:
3943
CI: true
4044
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
@@ -75,6 +79,8 @@ jobs:
7579
max-regression-pct: ${{ fromJSON(vars.MAX_REGRESSION_PCT) || 10 }}
7680

7781
release:
82+
name: Release Stable
83+
needs: [build, test, benchmarks]
7884
if: ${{ github.event_name == 'workflow_dispatch' || (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name,'-')) }}
7985
runs-on: ubuntu-latest
8086
timeout-minutes: 30

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ permissions:
5656

5757
env:
5858
CI: true # implies --quiet for the scripts
59-
VERBOSE: ${{ inputs.verbose || false }} # enables tracing and dump_vars in the scripts
60-
# use ONLY if justified - new functionality, integration, etc.
61-
FORCE_NEW_BASELINE: ${{ inputs.force-new-baseline || vars.FORCE_NEW_BASELINE || false }}
6259
# these must be the same across all jobs and steps below.
6360
# We must know where to find the artifacts and where to download/upload to/from across all jobs and steps here.
6461
ARTIFACTS_DIR: BmArtifacts
@@ -98,8 +95,10 @@ jobs:
9895
- name: Run the benchmarks
9996
shell: bash
10097
env:
101-
FORCE_NEW_BASELINE: ${{ inputs.force-new-baseline }}
102-
VERBOSE: ${{ inputs.verbose || false }}
98+
FORCE_NEW_BASELINE: ${{ fromJSON(inputs.force-new-baseline) || false }}
99+
VERBOSE: ${{ fromJSON(inputs.verbose) || false }}
100+
DEFINE: ${{ inputs.define || '' }}
101+
SUMMARIES_DIR: ${{ env.SUMMARIES_DIR }}
103102
run: >-
104103
./scripts/bash/run-benchmarks.sh ${{ inputs.benchmark-project }}
105104
--max-regression-pct "${{ inputs.max-regression-pct }}"
@@ -116,7 +115,7 @@ jobs:
116115
retention-days: 5
117116

118117
- name: Upload benchmark results artifact as a new baseline
119-
if: ${{ inputs.force-new-baseline || env.FORCE_NEW_BASELINE || false }}
118+
if: ${{ inputs.force-new-baseline || false }}
120119
uses: actions/upload-artifact@v4
121120
with:
122121
name: benchmark-baseline-${{ matrix.os }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ permissions:
4848

4949
env:
5050
CI: true # implies --quiet for the scripts
51-
VERBOSE: ${{ inputs.verbose || false }} # enables tracing and dump_vars in the scripts
52-
# these must be the same across all jobs and steps below.
51+
# this must be the same across all jobs and steps below.
5352
# We must know where to find the artifacts and where to download/upload to/from across all jobs and steps here.
5453
ARTIFACTS_DIR: "TestArtifacts"
5554

@@ -82,6 +81,7 @@ jobs:
8281
shell: bash
8382
env:
8483
VERBOSE: ${{ inputs.verbose || false }}
84+
DEFINE: ${{ inputs.define || '' }}
8585
run: >-
8686
./scripts/bash/run-tests.sh ${{ inputs.test-project }}
8787
--min-coverage-pct "${{ inputs.min-coverage-pct }}"

0 commit comments

Comments
 (0)