Open AndreMikulec opened 21 hours ago
- 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
NOTE: ${WORKSPACE} may actually NEED to be $(cygpath "${WORKSPACE}") ? ??
${WORKSPACE} may actually NEED to be $(cygpath "${WORKSPACE}") ? ??