Skip to content

Commit

Permalink
Add support for Intel SDE 9.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptp authored and ptp committed Feb 3, 2024
1 parent 2b2adf3 commit e07f67d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
version: ["9.27.0", "9.24.0", "9.14.0", "9.7.0", "9.0.0", "8.69.1"]
version: ["9.33.0", "9.27.0", "9.24.0", "9.14.0", "9.7.0", "9.0.0", "8.69.1"]
exclude:
- os: macos-latest
version: "9.33.0"
- os: macos-latest
version: "9.27.0"
- os: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See [action.yml](action.yml)
uses: petarpetrovt/[email protected]
with:
environmentVariableName: MY_CUSTOM_NAME # default value is `SDE_PATH`
sdeVersion: 9.27.0 # possible values: 9.27.0 (default), 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1
sdeVersion: 9.33.0 # possible values: 9.33.0 (default), 9.27.0, 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1
```
> Versions `>= 9.14.0` work only for windows and linux.
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ inputs:
defaultValue: SDE_PATH
required: true
sdeVersion:
description: "Intel SDE version (examples: 9.27.0, 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1)"
defaultValue: 9.27.0
description: "Intel SDE version (examples: 9.33.0, 9.27.0, 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1)"
defaultValue: 9.33.0
required: true
runs:
using: node20
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as path from 'path';
import fs from 'fs';

const defaultEnvironmentVariableName: string = "SDE_PATH";
const defaultSdeVersion: string = "9.27.0";
const defaultSdeVersion: string = "9.33.0";

function getPlatformIdentifier(): string {
switch (process.platform) {
Expand All @@ -22,19 +22,23 @@ function getPlatformIdentifier(): string {

function getVersionDownloadUrl(version: string): string {
const platform: string = getPlatformIdentifier();
const baseUrl: string = "https://downloadmirror.intel.com";

switch (version) {
case "9.33.0":
return `${baseUrl}/813591/sde-external-9.33.0-2024-01-07-${platform}.tar.xz`;
case "9.27.0":
return `https://downloadmirror.intel.com/788820/sde-external-9.27.0-2023-09-13-${platform}.tar.xz`;
return `${baseUrl}/788820/sde-external-9.27.0-2023-09-13-${platform}.tar.xz`;
case "9.24.0":
return `https://downloadmirror.intel.com/784319/sde-external-9.24.0-2023-07-13-${platform}.tar.xz`;
return `${baseUrl}/784319/sde-external-9.24.0-2023-07-13-${platform}.tar.xz`;
case "9.14.0":
return `https://downloadmirror.intel.com/751535/sde-external-9.14.0-2022-10-25-${platform}.tar.xz`;
return `${baseUrl}/751535/sde-external-9.14.0-2022-10-25-${platform}.tar.xz`;
case "9.7.0":
return `https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-${platform}.tar.xz`;
return `${baseUrl}/732268/sde-external-9.7.0-2022-05-09-${platform}.tar.xz`;
case "9.0.0":
return `https://downloadmirror.intel.com/684899/sde-external-9.0.0-2021-11-07-${platform}.tar.xz`;
return `${baseUrl}/684899/sde-external-9.0.0-2021-11-07-${platform}.tar.xz`;
case "8.69.1":
return `https://downloadmirror.intel.com/684910/sde-external-8.69.1-2021-07-18-${platform}.tar.bz2`;
return `${baseUrl}/684910/sde-external-8.69.1-2021-07-18-${platform}.tar.bz2`;
default:
throw new Error(`SDE version '${version}' is not supported in this context.`);
}
Expand Down

0 comments on commit e07f67d

Please sign in to comment.