Patch/20260727 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - '**.txt' | |
| - '**.drawio' | |
| - '**.vipb' | |
| workflow_dispatch: | |
| jobs: | |
| # ────────────────────────────────────────────── | |
| # Job 1: Check for broken VIs (quick gate) | |
| # ────────────────────────────────────────────── | |
| Check_Broken_VIs: | |
| runs-on: [self-hosted, lv2017] | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - id: Check_Broken_VIs | |
| uses: NEVSTOP-LAB/lvCICD@main | |
| with: | |
| LabVIEW_Version: 2017 | |
| Operation: VIAn_CheckBrokenVIs | |
| Parameter1: ${{ github.workspace }} | |
| Parameter2: NOPASSWORD | |
| Parameter3: YES | |
| Parameter4: -placeContent | |
| # ────────────────────────────────────────────── | |
| # Job 2: Build VIPM library (only if check passed) | |
| # ────────────────────────────────────────────── | |
| Build_VIPM_Library: | |
| needs: Check_Broken_VIs | |
| runs-on: [self-hosted, lv2017] | |
| steps: | |
| - uses: FranzDiebold/github-env-vars-action@v2 | |
| - uses: actions/checkout@v4.2.2 | |
| - name: BuildDailyVIP | |
| id: build-vip | |
| uses: NEVSTOP-LAB/vipm-BuildViPackage@main | |
| with: | |
| LabVIEW_Version: 2017 | |
| VipbPath: ${{ github.workspace }} | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4.3.2 | |
| with: | |
| name: ${{ steps.build-vip.outputs.vipName }} | |
| path: ${{ steps.build-vip.outputs.vipPathName }} | |
| if-no-files-found: warn | |
| retention-days: 90 | |
| - name: backup Build Artifact by ftp | |
| uses: dennisameling/ftp-upload-action@v1.0.9 | |
| 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/ |