Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 0 additions & 94 deletions .github/workflows/currency-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,97 +181,6 @@ jobs:
name: updated-package-cache
path: package-cache.tar.gz

wheel_build_py39:
needs: build_info
if: ${{ inputs.wheel_build == 'true' }}
runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-ppc64le-p10' }}
continue-on-error: true
env:
GHA_CURRENCY_SERVICE_ID_API_KEY: ${{ secrets.GHA_CURRENCY_SERVICE_ID_API_KEY }}
GHA_CURRENCY_SERVICE_ID: ${{ secrets.GHA_CURRENCY_SERVICE_ID }}
PYTHON_VERSION: "3.9"
PACKAGE_NAME: ${{ inputs.package_name }}
VERSION: ${{ inputs.version }}

steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0 # required for getting all the commits not just the latest commits

- name: Install system dependencies
run: |
sudo apt update -y

- name: Download package-cache from previous step
uses: actions/download-artifact@v7
with:
name: package-cache

- name: Extract package cache
run: tar -xzf package-cache.tar.gz

- name: Run build_wheels.sh
run: |
ls
echo "---------------------updated cache-----------------------"
ls package-cache
chmod +x package-cache/variable.sh
chmod +x package-cache/scanner-env.sh
source package-cache/variable.sh
source package-cache/scanner-env.sh

echo "===== Checking files before log compression ====="
pwd
ls -lh
chmod +x ./gha-script/build_wheels.sh
bash ./gha-script/build_wheels.sh

echo "===========after execution =================="
sudo apt update -y
sudo lsb_release -a 2>/dev/null || echo "lsb_release not available"
sudo uname -a

echo "===== AFTER BUILD: checking for wheel_build_log ====="
WORKSPACE=$(pwd)
echo "Workspace = $WORKSPACE"
ls -lh

echo "----- specifically checking for wheel_build_log -----"
ls -lh "$WORKSPACE/wheel_build_log" || echo "wheel_build_log NOT found!"

# ======= HANDLE LOG FILE SAFELY =======
LOG_NAME="${PACKAGE_NAME}_${VERSION}_wheel_py39_log.gz"

if [ -f "$WORKSPACE/wheel_build_log" ]; then
echo "Found wheel_build_log — compressing it"
gzip "$WORKSPACE/wheel_build_log"
mv "$WORKSPACE/wheel_build_log.gz" "$WORKSPACE/$LOG_NAME"
else
echo "wheel_build_log missing — creating fallback log"
echo "Wheel build completed for ${PACKAGE_NAME} ${VERSION} on Python 3.9" \
> "$WORKSPACE/${PACKAGE_NAME}_${VERSION}_wheel_py39_log"
gzip "$WORKSPACE/${PACKAGE_NAME}_${VERSION}_wheel_py39_log"
LOG_NAME="${PACKAGE_NAME}_${VERSION}_wheel_py39_log.gz"
fi

echo "Final log file to upload: $LOG_NAME"
chmod +x ./gha-script/upload-scripts/upload_file.sh
bash ./gha-script/upload-scripts/upload_file.sh $LOG_NAME
ls -lh "$WORKSPACE/$LOG_NAME"

- name: Upload wheel artifact using custom script
run: |
if ls *.whl 1> /dev/null 2>&1; then
sudo chmod a+r *.whl
WHEEL_FILE=$(ls *.whl)
SHA256_VALUE=$(cat sha256.sha)
chmod +x ./gha-script/upload-scripts/upload_wheel.sh
bash ./gha-script/upload-scripts/upload_wheel.sh $WHEEL_FILE $SHA256_VALUE
else
echo "No wheel file found!"
exit 1
fi

wheel_build_py310:
needs: build_info
Expand Down Expand Up @@ -715,7 +624,6 @@ jobs:
wheel_licenses:
if: ${{ always() && inputs.wheel_build == 'true' }}
needs:
- wheel_build_py39
- wheel_build_py310
- wheel_build_py311
- wheel_build_py312
Expand Down Expand Up @@ -771,7 +679,6 @@ jobs:
wheel_scanner:
if: ${{ always() && inputs.wheel_build == 'true' }}
needs:
- wheel_build_py39
- wheel_build_py310
- wheel_build_py311
- wheel_build_py312
Expand Down Expand Up @@ -1019,7 +926,6 @@ jobs:
needs:
- build
- source_scanner
- wheel_build_py39
- wheel_build_py310
- wheel_build_py311
- wheel_build_py312
Expand Down
Loading