Skip to content

Commit

Permalink
update osx and win senzing paths to support v3 and v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Aug 20, 2024
1 parent e0cfe7a commit c77df23
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 181 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ runs:

- if: runner.os == 'macOS'
name: Run on macOS
uses: senzing-factory/github-action-install-senzing-api/darwin@v3
uses: senzing-factory/github-action-install-senzing-api/darwin@69-skern
with:
senzingapi-version: ${{ inputs.senzingapi-version }}

- if: runner.os == 'Windows'
name: Run on Windows
uses: senzing-factory/github-action-install-senzing-api/windows@v3
uses: senzing-factory/github-action-install-senzing-api/windows@69-skern
with:
senzingapi-version: ${{ inputs.senzingapi-version }}

Expand Down
20 changes: 2 additions & 18 deletions darwin/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,13 @@ runs:
using: composite
steps:

# Download latest staging or production image.
# Install latest staging or production image.

- env:
SENZING_INSTALL_VERSION: ${{ inputs.senzingapi-version }}
name: Install Senzing API
shell: bash
run: ${{ github.action_path }}/download-senzing.sh

# Install Senzing API.

- name: Install Senzing API
shell: bash
run: |
ls -tlc /tmp/
hdiutil attach /tmp/senzingapi.dmg
sudo mkdir -p /opt/senzing/
sudo cp -R /Volumes/SenzingAPI/senzing/er /opt/senzing
# Verify installation.

- name: Verify installed Senzing API version
shell: bash
run: cat /opt/senzing/er/szBuildVersion.json
run: ${{ github.action_path }}/install-senzing.sh

branding:
icon: download
Expand Down
71 changes: 0 additions & 71 deletions darwin/download-senzing.sh

This file was deleted.

6 changes: 4 additions & 2 deletions linux/install-senzing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ install-senzingapi-runtime() {
############################################
# verify-installation
# GLOBALS:
# SENZING_PACKAGE
# full package name used for install
# MAJOR_VERSION
# set prior to this call via either
# get-generic-major-version or
# get-semantic-major-version
############################################
verify-installation() {

Expand Down
19 changes: 2 additions & 17 deletions windows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,13 @@ runs:
using: composite
steps:

# Download latest staging or production image.
# Install latest staging or production image.

- env:
SENZING_INSTALL_VERSION: ${{ inputs.senzingapi-version }}
name: Install Senzing API
shell: bash
run: $GITHUB_ACTION_PATH/download-senzing.sh

# Install Senzing API.

- name: Install Senzing API
shell: cmd
run: |
7z x -y -o"C:\Program Files" senzingapi.zip
ren "C:\Program Files\senzing" "senzing2"
ren "C:\Program Files\senzing2" "Senzing"
# Verify installation.

- name: Verify installed Senzing API version
shell: bash
run: cat "/c/Program Files\senzing\er\szBuildVersion.json"
run: $GITHUB_ACTION_PATH/install-senzing.sh

branding:
icon: download
Expand Down
71 changes: 0 additions & 71 deletions windows/download-senzing.sh

This file was deleted.

0 comments on commit c77df23

Please sign in to comment.