Skip to content

Commit e747af9

Browse files
committed
Use platform-specific test license secrets
Update CI workflows to use platform-specific license secrets and filenames. macOS, Ubuntu (Linux), and Windows workflows now read TEST_LICENSE_MACOS / TEST_LICENSE_LINUX / TEST_LICENSE_WINDOWS and write license_RadarSimPy_MacOS.lic, license_RadarSimPy_Linux.lic, and license_RadarSimPy_Windows.lic respectively, replacing the previous generic secret and filename. This allows separate secrets per platform and removes reliance on the hardcoded license filename used previously.
1 parent 97dca3d commit e747af9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/unit_test_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ jobs:
158158
- name: Setup license file
159159
run: |
160160
mkdir -p ./radarsimpy
161-
echo "$TEST_LICENSE" > ./radarsimpy/license_RadarSimPy_M1770306974.lic
161+
echo "$TEST_LICENSE_MACOS" > ./radarsimpy/license_RadarSimPy_MacOS.lic
162162
env:
163-
TEST_LICENSE: ${{ secrets.TEST_LICENSE }}
163+
TEST_LICENSE_MACOS: ${{ secrets.TEST_LICENSE_MACOS }}
164164

165165
- name: Display system information
166166
run: |

.github/workflows/unit_test_ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ jobs:
136136
- name: Setup license file
137137
run: |
138138
mkdir -p ./radarsimpy
139-
echo "$TEST_LICENSE" > ./radarsimpy/license_RadarSimPy_M1770306974.lic
139+
echo "$TEST_LICENSE_LINUX" > ./radarsimpy/license_RadarSimPy_Linux.lic
140140
env:
141-
TEST_LICENSE: ${{ secrets.TEST_LICENSE }}
141+
TEST_LICENSE_LINUX: ${{ secrets.TEST_LICENSE_LINUX }}
142142

143143
- name: Display system information
144144
run: |

.github/workflows/unit_test_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ jobs:
9494
- name: Setup license file
9595
run: |
9696
New-Item -ItemType Directory -Force -Path .\radarsimpy
97-
$env:TEST_LICENSE | Out-File -FilePath .\radarsimpy\license_RadarSimPy_M1770306974.lic -Encoding utf8
97+
$env:TEST_LICENSE_WINDOWS | Out-File -FilePath .\radarsimpy\license_RadarSimPy_Windows.lic -Encoding utf8
9898
env:
99-
TEST_LICENSE: ${{ secrets.TEST_LICENSE }}
99+
TEST_LICENSE_WINDOWS: ${{ secrets.TEST_LICENSE_WINDOWS }}
100100

101101
- name: Set up Visual Studio environment
102102
uses: ilammy/msvc-dev-cmd@v1

0 commit comments

Comments
 (0)