feat(general): Test build ARM executables #10893
Workflow file for this run
This file contains 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: PR Test | ||
on: pull_request | ||
permissions: | ||
contents: read | ||
jobs: | ||
build-release-artifacts-arm: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
name: linux | ||
- os: windows-latest | ||
name: windows | ||
- os: macos-latest | ||
name: darwin | ||
# needs: [ github-release ] | ||
# if: needs.github-release.outputs.upload_url != '' | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | ||
- uses: pguyot/arm-runner-action@v2 | ||
id: build_image | ||
with: | ||
base_image: raspios_lite_arm64:latest | ||
- uses: pguyot/arm-runner-action@v2 | ||
id: build_image | ||
Check failure on line 31 in .github/workflows/pr-test.yml GitHub Actions / PR TestInvalid workflow file
|
||
with: | ||
base_image: raspios_lite_arm64:latest | ||
command: | | ||
sudo apt update | ||
sudo apt install python3 idle3 | ||
cat << EOF > arch.py | ||
import platform | ||
print(platform.uname()[4]) | ||
EOF | ||
python -m arch.py | ||
# - name: Install pipenv | ||
# run: | | ||
# python -m pip install --no-cache-dir --upgrade pipenv | ||
# - name: Install deps and run pyinstaller | ||
# run: | | ||
# pipenv sync | ||
# pipenv run pip install pyinstaller | ||
# - name: Build executable | ||
# run: pipenv run pyinstaller checkov.spec | ||
# - name: Windows - zip artifact | ||
# if: matrix.os == 'windows-latest' | ||
# run: | | ||
# cd dist | ||
# dir | ||
# cd .. | ||
# tar.exe -a -c -f checkov.zip dist\\checkov.exe | ||
# - name: Linux/Mac - zip artifact | ||
# if: matrix.os != 'windows-latest' | ||
# run: zip checkov.zip dist/checkov |