Skip to content

Commit 1ab384c

Browse files
committed
v0.9.2
1 parent ea83e33 commit 1ab384c

3 files changed

Lines changed: 74 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
env:
17+
DOTNET_NOLOGO: true
18+
DOTNET_CLI_TELEMETRY_OPTOUT: true
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: actions/setup-dotnet@v4
28+
with:
29+
dotnet-version: 10.0.x
30+
31+
- name: Restore
32+
run: dotnet restore ObjectPoolLinter.slnx
33+
34+
- name: Build
35+
run: dotnet build ObjectPoolLinter.slnx -c Release --no-restore -warnaserror
36+
37+
- name: Test
38+
run: >-
39+
dotnet test ObjectPoolLinter.slnx -c Release --no-build
40+
--logger "trx;LogFileName=test-results.trx"
41+
--results-directory artifacts/test-results
42+
43+
- name: Pack
44+
run: dotnet pack src/ObjectPoolLinter.Package/ObjectPoolLinter.Package.csproj -c Release --no-build -o artifacts/nuget
45+
46+
- name: Upload packages
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: nuget
50+
path: |
51+
artifacts/nuget/*.nupkg
52+
artifacts/nuget/*.snupkg
53+
if-no-files-found: error
54+
55+
- name: Upload test results
56+
if: always()
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: test-results
60+
path: artifacts/test-results
61+
if-no-files-found: ignore

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v0.9.2] - 2026-09-12
11+
12+
### Build
13+
- The repository has CI. `.github/workflows/build.yml` runs on every push to `main`, every pull request
14+
and on manual dispatch: it restores, builds the solution in Release with `-warnaserror`, runs the
15+
tests, and packs `ObjectPoolLinter.Package`. The `.nupkg` and `.snupkg` are uploaded as the `nuget`
16+
artifact (the job fails if pack produced neither), and the TRX test results are uploaded even when
17+
tests fail. Actions sets `CI=true`, so these builds get `ContinuousIntegrationBuild` from
18+
`Directory.Build.props`. Closes C1.
19+
1020
## [v0.9.1] - 2026-09-12
1121

1222
### Tests
@@ -417,7 +427,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
417427
### Removed
418428
- Empty placeholder test `tests/ObjectPoolLinter.Tests/UnitTest1.cs`.
419429

420-
[Unreleased]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.9.1...HEAD
430+
[Unreleased]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.9.2...HEAD
431+
[v0.9.2]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.9.1...v0.9.2
421432
[v0.9.1]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.9.0...v0.9.1
422433
[v0.9.0]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.8.8...v0.9.0
423434
[v0.8.8]: https://github.com/joezhuo2/ObjectPoolLinter/compare/v0.8.7...v0.8.8

src/ObjectPoolLinter.Package/ObjectPoolLinter.Package.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<PropertyGroup>
1111
<PackageId>ObjectPoolLinter</PackageId>
12-
<Version>0.9.1</Version>
12+
<Version>0.9.2</Version>
1313
<Authors>Joe Zhuo</Authors>
1414
<Copyright>Copyright (c) 2026 Joe Zhuo</Copyright>
1515
<Description>Roslyn analyzer for Unity C# that flags object allocations in hot paths and offers code fixes that route them through an object pool, minimizing GC and frame hitches.</Description>

0 commit comments

Comments
 (0)