3636 - name : Set output
3737 id : set_output
3838 run : |
39- if [[ "${{ inputs.platforms }}" == "rocky8" ]]; then
40- echo runson=ubuntu-latest >> $GITHUB_OUTPUT
41- echo container=ccdcrepository.azurecr.io/conan/rocky8-gcc10:latest >> $GITHUB_OUTPUT
42- echo python=python3 >> $GITHUB_OUTPUT
43- elif [[ "${{ inputs.platforms }}" == "ubuntu" ]]; then
39+ if [[ "${{ inputs.platforms }}" == "ubuntu" ]]; then
4440 echo runson=ubuntu-latest >> $GITHUB_OUTPUT
4541 echo python=python3 >> $GITHUB_OUTPUT
4642 elif [[ "${{ inputs.platforms }}" == "macos" ]]; then
@@ -49,13 +45,13 @@ jobs:
4945 elif [[ "${{ inputs.platforms }}" == "windows" ]]; then
5046 echo runson=windows-2019 >> $GITHUB_OUTPUT
5147 echo python=python >> $GITHUB_OUTPUT
48+ else
49+ # default to Rocky
50+ echo runson=ubuntu-latest >> $GITHUB_OUTPUT
51+ echo container=ccdcrepository.azurecr.io/conan/rocky8-gcc10:latest >> $GITHUB_OUTPUT
52+ echo python=python3 >> $GITHUB_OUTPUT
5253 fi
5354
54- # Build the conquest python for rocky8
55- echo runson=ubuntu-latest >> $GITHUB_OUTPUT
56- echo container=ccdcrepository.azurecr.io/conan/rocky8-gcc10:latest >> $GITHUB_OUTPUT
57- echo python=python3 >> $GITHUB_OUTPUT
58-
5955 build-upload :
6056 needs :
6157 - setup
8177 ${{ needs.setup.outputs.python }} --version
8278 ${{ needs.setup.outputs.python }} -m pip install --upgrade pip wheel setuptools
8379
80+ - name : Install patch
81+ run : |
82+ if [[ "${{ needs.setup.outputs.runson }}" == "ubuntu-latest" ]]; then
83+ if [[ -f /etc/rocky-release ]]; then
84+ sudo dnf install -y patch
85+ else
86+ sudo apt update && sudo apt install -y patch
87+ fi
88+ fi
89+
8490 - name : Build conquest python
8591 run : |
8692 output=$(${{ needs.setup.outputs.python }} build_conquest_python.py | grep Creating | tail -n 1)
8995 echo "archive_filename=$archive_filename" >> $GITHUB_ENV
9096 echo "archive_path=$archive_path" >> $GITHUB_ENV
9197
98+ - name : Store conquest python as build artifact
99+ if : ${{ !inputs.artifactory-push }}
100+ uses : actions/upload-artifact@v4
101+ with :
102+ retention-days : 1
103+ path : " ${{ env.archive_path }}/${{ env.archive_filename }}"
104+ name : ${{ env.archive_filename }}
105+
92106 - name : Set up JFrog CLI
93107 if : ${{ inputs.artifactory-push }}
94108 uses : jfrog/setup-jfrog-cli@v4
0 commit comments