Skip to content

Commit 7d8783d

Browse files
Transurgeonclaude
andauthored
Add release workflow and documentation (#38)
* Add release workflow and documentation - Add .github/workflows/release.yml for automated GitHub releases on tag push - Add RELEASE.md documenting release and submodule update procedures - Bump version to 0.1.0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Move RELEASE.md to DNLP repository Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6293217 commit 7d8783d

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
# Run tests before creating release
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Configure CMake
19+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
20+
21+
- name: Build
22+
run: cmake --build build --config Release
23+
24+
- name: Run tests
25+
run: ./build/all_tests
26+
27+
# Create GitHub release after tests pass
28+
release:
29+
needs: test
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Create Release
37+
uses: softprops/action-gh-release@v2
38+
with:
39+
generate_release_notes: true

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ project(DNLP_Diff_Engine C)
33
set(CMAKE_C_STANDARD 99)
44

55
set(DIFF_ENGINE_VERSION_MAJOR 0)
6-
set(DIFF_ENGINE_VERSION_MINOR 0)
7-
set(DIFF_ENGINE_VERSION_PATCH 1)
6+
set(DIFF_ENGINE_VERSION_MINOR 1)
7+
set(DIFF_ENGINE_VERSION_PATCH 0)
88
set(DIFF_ENGINE_VERSION "${DIFF_ENGINE_VERSION_MAJOR}.${DIFF_ENGINE_VERSION_MINOR}.${DIFF_ENGINE_VERSION_PATCH}")
99
add_compile_definitions(DIFF_ENGINE_VERSION="${DIFF_ENGINE_VERSION}")
1010

0 commit comments

Comments
 (0)