name: Translate PyPy on: push: branches: [ "main", "py3.[0-9]+"] pull_request: branches: [ "main", "py3.[0-9]+"] workflow_dispatch: permissions: contents: read jobs: build: name: build on ${{ matrix.os }}${{ matrix.revdb && ' (with RevDB)' || '' }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-24.04] revdb: [false, true] steps: - uses: actions/checkout@v6 with: fetch-depth: 1 - name: Set up PyPy 2.7 uses: actions/setup-python@v6 with: python-version: "pypy-2.7-v7.3.17" cache: 'pip' # caching pip dependencies - name: install system dependencies uses: awalsh128/cache-apt-pkgs-action@latest with: packages: libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libncurses5-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev liblzma-dev libncursesw5-dev patchelf version: 1.0 - name: run objspace unit tests run: | pypy -m pip install -r requirements.txt pypy pytest.py pypy/objspace -v -m "not flaky" - name: translate run: | pypy rpython/bin/rpython ${{ matrix.revdb && '-O2 --revdb' || '-Ojit' }} pypy/goal/targetpypystandalone.py ${{ matrix.revdb && '--withoutmod-_hpy_universal' }} mv pypy*-c libpypy*-c.so pypy/goal/ - name: package run: | ./pypy/goal/pypy*-c pypy/tool/release/package.py --make-portable --target=. - name: upload if: success() || failure() uses: actions/upload-artifact@v7.0.0 with: name: pypy-ci-build-${{ matrix.os }}${{ matrix.revdb && '-revdb' || '' }} path: ./pypy-nightly.tar.bz2