Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to add a simple github action #4821

Merged
merged 9 commits into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Translate PyPy

on:
push:
branches: [ "main", "py3.9", "py3.10"]
pull_request:
branches: [ "main", "py3.9", "py3.10"]
cfbolz marked this conversation as resolved.
Show resolved Hide resolved
workflow_dispatch:

permissions:
contents: read

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up PyPy 2.7
uses: actions/setup-python@v4
with:
python-version: "pypy-2.7-v7.3.10"

- name: install dependencies
run: |
sudo apt install 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
pypy -m pip install -r requirements.txt

- name: run objspace unit tests
run: |
pypy pytest.py pypy/objspace -v

- name: translate
run: |
pypy rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py
mv pypy-c libpypy-c.so pypy/goal/

- name: package
run: |
./pypy/goal/pypy-c pypy/tool/release/package.py --make-portable

- name: upload
uses: actions/upload-artifact@v3
with:
name: pypy-ci-build-${{ matrix.os }}
path: /tmp/usession-pypy-*-runner/build/pypy-nightly.tar.bz2