Skip to content

Commit cdfefe0

Browse files
author
Clemens Vasters
committed
Fix CI: C excludes cJSON from install, Ruby updates version from tag
1 parent 29723c5 commit cdfefe0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/c.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178

179179
- name: Install to staging directory
180180
working-directory: c
181-
run: cmake --install build --prefix staging --config Release
181+
run: cmake --install build --prefix staging --config Release --component json_structure
182182

183183
- name: Create archive (Unix)
184184
if: runner.os != 'Windows'

.github/workflows/ruby.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ jobs:
125125
id: version
126126
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
127127

128+
- name: Update version.rb from tag
129+
working-directory: ruby
130+
run: |
131+
VERSION="${{ steps.version.outputs.VERSION }}"
132+
sed -i "s/VERSION = '.*'/VERSION = '$VERSION'/" lib/jsonstructure/version.rb
133+
cat lib/jsonstructure/version.rb
134+
128135
- name: Verify version matches gemspec
129136
working-directory: ruby
130137
run: |

0 commit comments

Comments
 (0)