chore(deps): bump roger-zhangg/sam-pr-reviewer from 793976165e969a6ccb6ace13d35811c02471f471 to 55cb69e26f0ac3826420fb678e6c562424b8483f #8814
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: Validate Pyinstaller Build | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| env: | |
| CI_OVERRIDE: "1" | |
| jobs: | |
| build-for-linux: | |
| name: build-pyinstaller-linux | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'aws' | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Make installer script executable | |
| run: chmod +x ./installer/pyinstaller/build-linux.sh | |
| - name: Build PyInstaller in manylinux container | |
| run: | | |
| for i in 1 2 3; do | |
| docker run --rm -v .:/samcli -w /samcli -e CI_OVERRIDE='1' \ | |
| quay.io/pypa/manylinux2014_x86_64:latest /samcli/installer/pyinstaller/build-linux.sh aws-sam-cli-linux-x86_64.zip && break | |
| echo "Attempt $i failed, retrying..." | |
| sleep 10 | |
| done | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.11 | |
| - name: Basic tests for PyInstaller | |
| run: | | |
| unzip .build/output/aws-sam-cli-linux-x86_64.zip -d sam-installation | |
| sudo ./sam-installation/install | |
| sam-beta --version | |
| ./tests/sanity-check.sh | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: pyinstaller-linux-zip | |
| path: .build/output/aws-sam-cli-linux-x86_64.zip | |
| retention-days: 15 | |
| build-for-mac: | |
| name: build-pyinstaller-macos | |
| runs-on: macos-latest | |
| if: github.repository_owner == 'aws' | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Build PyInstaller | |
| run: | | |
| chmod +x ./installer/pyinstaller/build-mac.sh | |
| ./installer/pyinstaller/build-mac.sh aws-sam-cli-macos-x86_64.zip | |
| - name: Basic tests for PyInstaller | |
| env: | |
| SAM_INIT_RUNTIME: "python3.11" | |
| run: | | |
| unzip .build/output/aws-sam-cli-macos-x86_64.zip -d sam-installation | |
| sudo ./sam-installation/install | |
| sam-beta --version | |
| ./tests/sanity-check.sh | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: pyinstaller-macos-zip | |
| path: .build/output/aws-sam-cli-macos-x86_64.zip | |
| retention-days: 15 |