Skip to content

feat(general): Test build ARM executables #10893

feat(general): Test build ARM executables

feat(general): Test build ARM executables #10893

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / PR Test

Invalid workflow file

The workflow is not valid. .github/workflows/pr-test.yml (Line: 31, Col: 13): The identifier 'build_image' may not be used more than once within the same scope.
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