Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Possible - buildpgANDplrInSRCcontrib - save pg-artifact.7z #35

Open
AndreMikulec opened this issue Sep 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@AndreMikulec
Copy link
Owner

      - name: Compile PG using pgSRCversion and PG_SOURCE and Install to here PG_HOME
        if: ${{ env.os == 'windows-latest' && ( env.compilerClass == 'MSYS2' || env.compilerClass == 'cygwin' ) && env.buildpgFromSRC == 'true' }}
. . .
          if [ -d "${PG_HOME}" ]
          then
            echo "BEGIN compressing pg artifact"
            7z a -t7z -mmt24 -mx7 -r pg-artifact.7z  "${PG_HOME}/*"
            echo "END   compressing pg artifact"
          fi


      - name: Windows non-msvc Meson PG and Meson PL/R Setup Compile and Non-Meson Manual Test
        if: ${{ env.os == 'windows-latest' && ( env.compilerClass == 'MSYS2' || env.compilerClass == 'cygwin' ) && env.buildpgANDplrInSRCcontrib == 'true' }}
NEW CODE
            if [ -d "${PGROOT2}" ]
            then
              if [ -d "${PG_SOURCE}/build" ]
              then
                echo "BEGIN compressing pg artifact"
                7z a -t7z -mmt24 -mx7 -r ${WORKSPACE}/pg-artifact.7z  "${PG_SOURCE}/build/*"
                echo "END   compressing pg artifact"
              fi
            fi
          fi
NEW CODE
    Windows Prep PG Artifact
    Upload artifact PG for export for LOCAL testing
  ADD
    || env.buildpgANDplrInSRCcontrib == 'true'
ADD
  MOVE LOWER
    Windows Prep PG Artifact
    Upload artifact PG for export for LOCAL testing


      - name: Windows Prep PG Artifact
        if: ${{ env.os == 'windows-latest' && env.compilerClass == 'MSYS2' && env.buildpgFromSRC == 'true' }}
        env:
          PGVER2: ${{ env.PGVER2 }}
          Platform: ${{ env.Platform }}
        shell: cmd
        run: |
          echo on
          dir
          if exist pg-artifact.7z copy pg-artifact.7z pg-matid-${{ matrix.matid }}-${{ env.os }}-${{ env.compilerEnv }}-${{ env.Platform }}-PG${{ env.pgversion }}-${{ env.Configuration }}-R${{ env.rversion }}-PGSRC${{ env.buildpgFromSRC }}-PGSRCMETH${{ env.buildpgFromSRCmethod }}-SRCCTB${{ env.buildpgANDplrInSRCcontrib }}.7z
          if exist pg-artifact.7z dir                 pg-matid-${{ matrix.matid }}-${{ env.os }}-${{ env.compilerEnv }}-${{ env.Platform }}-PG${{ env.pgversion }}-${{ env.Configuration }}-R${{ env.rversion }}-PGSRC${{ env.buildpgFromSRC }}-PGSRCMETH${{ env.buildpgFromSRCmethod }}-SRCCTB${{ env.buildpgANDplrInSRCcontrib }}.7z

      # @v4 - Due to how Artifacts are created in this new version,
      # it is no longer possible to upload to the same named Artifact multiple times.
      # MAY 2024
      # github.com/actions/upload-artifact
      #
      - name: Upload artifact PG for export for LOCAL testing
        if: ${{ env.os == 'windows-latest' &&  env.compilerClass == 'MSYS2' && env.buildpgFromSRC == 'true' }}
        uses: actions/upload-artifact@v4
        with:
          name: pg-matid-${{ matrix.matid }}-${{ env.os }}-${{ env.compilerEnv }}-${{ env.Platform }}-PG${{ env.pgversion }}-${{ env.Configuration }}-R${{ env.rversion }}-PGSRC${{ env.buildpgFromSRC }}-PGSRCMETH${{ env.buildpgFromSRCmethod }}-SRCCTB${{ env.buildpgANDplrInSRCcontrib }}
          path: |
            pg-matid-${{ matrix.matid }}-${{ env.os }}-${{ env.compilerEnv }}-${{ env.Platform }}-PG${{ env.pgversion }}-${{ env.Configuration }}-R${{ env.rversion }}-PGSRC${{ env.buildpgFromSRC }}-PGSRCMETH${{ env.buildpgFromSRCmethod }}-SRCCTB${{ env.buildpgANDplrInSRCcontrib }}.7z
@AndreMikulec
Copy link
Owner Author

AndreMikulec commented Sep 29, 2024

NOTE: ${WORKSPACE} may actually NEED to be $(cygpath "${WORKSPACE}") ? ??

@AndreMikulec AndreMikulec added the enhancement New feature or request label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant