Update sandbox.yml #28
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: Python test bitness | |
on: | |
push: | |
branches: | |
- python-maxsize-sizeof | |
workflow_dispatch: | |
# allow manual runs on branches without a PR | |
jobs: | |
IronPython: | |
name: IronPython ${{ matrix.runner }} | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: ["windows-latest"] | |
steps: | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.x | |
- name: Check python | |
shell: bash | |
run: | | |
choco install ironpython | |
ipy.exe -c "import sys; print(sys.maxsize)" | |
ipy.exe -c "import struct; print(struct.calcsize('P'))" | |
ipy32.exe -c "import sys; print(sys.maxsize)" | |
ipy32.exe -c "import struct; print(struct.calcsize('P'))" | |
ipy.exe -c "import sys; assert sys.maxsize == 2147483647" | |
ipy.exe -c "import struct; assert struct.calcsize('P') == 7" | |
ipy32.exe -c "import sys; assert sys.maxsize == 2147483647" | |
ipy32.exe -c "import struct; assert struct.calcsize('P') == 4" |