Skip to content

Commit

Permalink
Add support for Intel SDE 9.27.0 (#30)
Browse files Browse the repository at this point in the history
* Add support for Intel SDE 9.27.0

* Fix download link

* Update workflow yml

* Update packages

* Update workflow YAML

* Fix YAML file

---------

Co-authored-by: Petar Petrov <[email protected]>
  • Loading branch information
petarpetrovt and Petar Petrov authored Nov 18, 2023
1 parent f3d066f commit 9319d71
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 23 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
version: ["9.24.0", "9.14.0", "9.7.0", "9.0.0", "8.69.1"]
version: ["9.27.0", "9.24.0", "9.14.0", "9.7.0", "9.0.0", "8.69.1"]
exclude:
- os: macos-latest
version: "9.27.0"
- os: macos-latest
version: "9.24.0"
- os: macos-latest
version: "9.14.0"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4.0.0

- name: Install NPM
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See [action.yml](action.yml)
uses: petarpetrovt/[email protected]
with:
environmentVariableName: MY_CUSTOM_NAME # default value is `SDE_PATH`
sdeVersion: 9.24.0 # possible values: 9.24.0 (default), 9.14.0, 9.7.0, 9.0.0, 8.69.1
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
```
* 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.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1)"
defaultValue: 9.24.0
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
required: true
runs:
using: node12
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion 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.24.0";
const defaultSdeVersion: string = "9.27.0";

function getPlatformIdentifier(): string {
switch (process.platform) {
Expand All @@ -23,6 +23,8 @@ function getPlatformIdentifier(): string {
function getVersionDownloadUrl(version: string): string {
const platform: string = getPlatformIdentifier();
switch (version) {
case "9.27.0":
return `https://downloadmirror.intel.com/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`;
case "9.14.0":
Expand Down
55 changes: 42 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"test": "node tester.js"
},
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.1"
},
"devDependencies": {
"@types/node": "^18.17.14",
"@types/node": "^18.18.9",
"@vercel/ncc": "^0.36.1",
"typescript": "5.0.4"
}
Expand Down

0 comments on commit 9319d71

Please sign in to comment.