Skip to content

Commit

Permalink
add action yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NEVSTOP committed Jan 23, 2025
1 parent bb3d6a8 commit 6c43f0c
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/Build_VIPM_Library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# This is a basic workflow to help you get started with Actions

name: Build_VIPM_Library

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request:
branches:
- main
types: [closed]

push:
paths-ignore:
- '**.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build_VIPM_Library:
# The type of runner that the job will run on
runs-on: [self-hosted, lv2020]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Get env variables
# https://github.com/marketplace/actions/github-environment-variables-action
- uses: FranzDiebold/github-env-vars-action@v2

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: vipm-InstallPackage
uses: NEVSTOP-LAB/vipm-InstallPackage@main
with:
LabVIEW_Version: 2020
# Package could be PackageName/PacakgeWithVersion/vipFilePath
Package: "GlobalStop"
Package1: "JKI TCP Server"

- uses: NEVSTOP-LAB/InstallNevstopPackage@main
with:
LabVIEW_Version: 2020
NEVSTOP-FTP-IP: ${{ secrets.VIPM_FTP_IP }}
NEVSTOP-FTP-PORT: ${{ secrets.VIPM_FTP_PORT }}
PackageName: Communicable-State-Machine
PackageName1: CSM-MassData-Parameter-Support
PackageName2: CSM-API-String-Arguments-Support
PackageName3: CSM-INI-Static-Variable-Support

# Runs a set of commands using the runners shell
- name: BuildDailyVIP
id: build-vip
uses: NEVSTOP-LAB/vipm-BuildViPackage@main
with:
LabVIEW_Version: 2020
VipbPath: ${{ github.workspace }}

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: ${{ steps.build-vip.outputs.vipName }}
path: ${{ steps.build-vip.outputs.vipPathName }}
# The desired behavior if no files are found using the provided path.
if-no-files-found: warn
retention-days: 90

# Backup generated files by ftp
# https://github.com/marketplace/actions/simple-ftp-upload
- name: backup Build Artifact by ftp
uses: dennisameling/[email protected]
with:
server: ${{ secrets.VIPM_FTP_IP }}
port: ${{ secrets.VIPM_FTP_PORT }}
username: ${{ secrets.VIPM_FTP_USER }}
password: ${{ secrets.VIPM_FTP_PASSWORD }}
secure: false
server_dir: /${{ env.CI_REPOSITORY_OWNER_SLUG }}/${{ env.CI_REPOSITORY_NAME }}/${{ env.CI_ACTION_REF_NAME }}/
local_dir: ./vip/

54 changes: 54 additions & 0 deletions .github/workflows/Check_Broken_VIs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions

name: Check_Broken_VIs

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
paths-ignore:
- '**.md'
- '**.txt'
- '**.drawio'
- '**.vipb'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Check_Broken_VIs:
# The type of runner that the job will run on
runs-on: [self-hosted, lv2020]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: vipm-InstallPackage
uses: NEVSTOP-LAB/vipm-InstallPackage@main
with:
LabVIEW_Version: 2020
# Package could be PackageName/PacakgeWithVersion/vipFilePath
Package: "GlobalStop"
Package1: "JKI TCP Server"

- uses: NEVSTOP-LAB/InstallNevstopPackage@main
with:
LabVIEW_Version: 2020
NEVSTOP-FTP-IP: ${{ secrets.VIPM_FTP_IP }}
NEVSTOP-FTP-PORT: ${{ secrets.VIPM_FTP_PORT }}
PackageName: Communicable-State-Machine
PackageName1: CSM-MassData-Parameter-Support
PackageName2: CSM-API-String-Arguments-Support
PackageName3: CSM-INI-Static-Variable-Support

# Runs a set of commands using the runners shell
- id: Check_Broken_VIs
uses: LV-APT/lvCICD@main
with:
LabVIEW_Version: 2020
Operation: VIAn_CheckBrokenVIs
Parameter1: ${{ github.workspace }}
Parameter2: NOPASSWORD
Parameter3: YES
Parameter4: -placeContent

0 comments on commit 6c43f0c

Please sign in to comment.