Debian Codegraph @

.github/workflows/translate.yml

raw symbols SCIP
1 name: Translate PyPy
2
3 on:
4 push:
5 branches: [ "main", "py3.[0-9]+"]
6 pull_request:
7 branches: [ "main", "py3.[0-9]+"]
8 workflow_dispatch:
9
10 permissions:
11 contents: read
12
13 jobs:
14 build:
15
16 name: build on ${{ matrix.os }}${{ matrix.revdb && ' (with RevDB)' || '' }}
17 runs-on: ${{ matrix.os }}
18 strategy:
19 fail-fast: false
20 matrix:
21 os: [ubuntu-24.04]
22 revdb: [false, true]
23
24 steps:
25 - uses: actions/checkout@v6
26 with:
27 fetch-depth: 1
28
29 - name: Set up PyPy 2.7
30 uses: actions/setup-python@v6
31 with:
32 python-version: "pypy-2.7-v7.3.17"
33 cache: 'pip' # caching pip dependencies
34
35 - name: install system dependencies
36 uses: awalsh128/cache-apt-pkgs-action@latest
37 with:
38 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
39 version: 1.0
40
41 - name: run objspace unit tests
42 run: |
43 pypy -m pip install -r requirements.txt
44 pypy pytest.py pypy/objspace -v -m "not flaky"
45
46 - name: translate
47 run: |
48 pypy rpython/bin/rpython ${{ matrix.revdb && '-O2 --revdb' || '-Ojit' }} pypy/goal/targetpypystandalone.py ${{ matrix.revdb && '--withoutmod-_hpy_universal' }}
49 mv pypy*-c libpypy*-c.so pypy/goal/
50
51 - name: package
52 run: |
53 ./pypy/goal/pypy*-c pypy/tool/release/package.py --make-portable --target=.
54
55 - name: upload
56 if: success() || failure()
57 uses: actions/[email protected]
58 with:
59 name: pypy-ci-build-${{ matrix.os }}${{ matrix.revdb && '-revdb' || '' }}
60 path: ./pypy-nightly.tar.bz2