From 3fb6e79703df9627897181e739bc836a83dc7314 Mon Sep 17 00:00:00 2001 From: "Sarver, Edwin" Date: Wed, 21 Aug 2024 16:05:40 -0400 Subject: [PATCH] Add visa stub library to package --- .github/workflows/pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4652db0..7628867 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -291,10 +291,26 @@ jobs: echo "commit=${COMMIT}" >> $GITHUB_OUTPUT npm version --no-git-tag-version "${V}" || true + - name: Get Latest VISA Stub Release + uses: robinraju/release-downloader@v1 + with: + repository: tektronix/libvisa-stub + latest: true + fileName: '*' - name: Move Packages run: | mkdir -p bin for f in target/*; do cp "$f" bin; done; + + if [ "${{matrix.os}}" = "win32" ]; then + cp *.dll bin/ || true + cp *.exp bin/ || true + cp *.lib bin/ || true + elif [ "${{matrix.os}}" = "linux" ]; then + cp *.so bin/ || true + elif [ "${{matrix.os}}" = "darwin" ]; then + cp *.dylib bin/ || true + fi - name: Run ClamAV run: clamscan -v bin/* - name: npm Package