-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use common definition of C++ versions (#103)
This consolidates some of the places we need to specify C++ version numbers into a single `cpp-sdk-versions.env` file. This is a similar approach to Relay Proxy. Updating this file will update: 1. CI unit tests 2. Docker example tests But it won't update the versions found in README or in the Docker files themselves (as they have default values for the new build arg I've introduced.) We need to consider the testing strategy going forward. Should we test a min version, and then also a "current" version? And if so, is that current going to float somehow (like using github's releases API to grab the latest), or be pinned to the latest explicitly (via a workflow, or Renovate or something.)
- Loading branch information
1 parent
26b1249
commit 35bb4f4
Showing
10 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# The following chunk of yml pulls two C++ sdk version numbers out of a file and | ||
# makes them available to the other actions/workflows in a convenient fashion. | ||
# This allows us to easily bump the version numbers in one place, instead of multiple yml files. | ||
name: C++ Versions | ||
description: Foo | ||
outputs: | ||
sdk: | ||
description: 'The version of the C++ Server-side SDK.' | ||
value: ${{ steps.cpp-versions.outputs.sdk }} | ||
redis_source: | ||
description: 'The version of the C++ Server-side SDK with Redis Source.' | ||
value: ${{ steps.cpp-versions.outputs.redis_source }} | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set C++ Versions | ||
id: cpp-versions | ||
shell: bash | ||
run: cat ./.github/variables/cpp-sdk-versions.env > $GITHUB_OUTPUT | ||
- name: Display C++ Versions | ||
shell: bash | ||
run: | | ||
echo "${{ format('C++ Server SDK v{0}', steps.cpp-versions.outputs.sdk) }}" | ||
echo "${{ format('C++ Server SDK Redis Source v{0}', steps.cpp-versions.outputs.redis_source) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sdk=3.3.3 | ||
redis_source=2.1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters