Skip to content

Commit

Permalink
Merge pull request #62 from cloudflare/branch-10.8
Browse files Browse the repository at this point in the history
Google V8 - Branch 10.8
  • Loading branch information
buffer authored Nov 29, 2022
2 parents c66a4be + 0be6c43 commit 670bc6a
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 1 deletion.
61 changes: 61 additions & 0 deletions .github/workflows/release-debian-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release

on:
release:
types: [published]
branches:
- master

jobs:
build:
name: Build wheel on debian-11.5
runs-on: self-hosted
strategy:
matrix:
python-version: ['3.9']

steps:
- name: STEP 1. Initialization
run: |
rm -rf stpyv8
pip uninstall -y stpyv8
- name: STEP 2. Checkout repository
uses: actions/checkout@v3

- name: STEP 3. Install dependencies
run: |
sudo apt install libboost-dev libboost-system-dev libboost-iostreams-dev libboost-python-dev
pip install --upgrade pip setuptools wheel pytest
- name: STEP 4. Build wheel
run: |
python setup.py v8
python setup.py sdist bdist_wheel -d stpyv8-debian-11-${{ matrix.python-version }}-debug
cp v8/out.gn/x64.release.sample/icudtl.dat stpyv8-debian-11-${{ matrix.python-version }}-debug/icudtl.dat
env:
STPYV8_DEBUG: 1
V8_DEPS_LINUX: 0
LDFLAGS: -L/usr/lib -L/usr/lib/x86_64-linux-gnu

- name: STEP 5. Install wheel
run : |
cp stpyv8-debian-11-${{ matrix.python-version }}/icudtl.dat /usr/share/stpyv8
pip install --upgrade stpyv8-debian-11-${{ matrix.python-version }}/stpyv8*.whl
- name: STEP 6. Test wheel
run: |
pytest -v
- name: STEP 7. Create wheel zip
uses: vimtor/action-zip@v1
with:
files: stpyv8-debian-11-${{ matrix.python-version }}-debug/
recursive: false
dest: stpyv8-debian-11-python-${{ matrix.python-version }}-debug.zip

- name: STEP 8. Upload to release
uses: AButler/upload-release-assets@v2.0
with:
files: 'stpyv8-debian-11-python-${{ matrix.python-version }}-debug.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/release-debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
release:
types: [published]
branches:
- master

jobs:
build:
name: Build wheel on debian-11.5
runs-on: self-hosted
strategy:
matrix:
python-version: ['3.9']

steps:
- name: STEP 1. Initialization
run: |
rm -rf stpyv8
pip uninstall -y stpyv8
- name: STEP 2. Checkout repository
uses: actions/checkout@v3

- name: STEP 3. Install dependencies
run: |
sudo apt install libboost-dev libboost-system-dev libboost-iostreams-dev libboost-python-dev
pip install --upgrade pip setuptools wheel pytest
- name: STEP 4. Build wheel
run: |
python setup.py v8
python setup.py sdist bdist_wheel -d stpyv8-debian-11-${{ matrix.python-version }}
cp v8/out.gn/x64.release.sample/icudtl.dat stpyv8-debian-11-${{ matrix.python-version }}/icudtl.dat
env:
V8_DEPS_LINUX: 0
LDFLAGS: -L/usr/lib -L/usr/lib/x86_64-linux-gnu

- name: STEP 5. Install wheel
run : |
cp stpyv8-debian-11-${{ matrix.python-version }}/icudtl.dat /usr/share/stpyv8
pip install --upgrade stpyv8-debian-11-${{ matrix.python-version }}/stpyv8*.whl
- name: STEP 6. Test wheel
run: |
pytest -v
- name: STEP 7. Create wheel zip
uses: vimtor/action-zip@v1
with:
files: stpyv8-debian-11-${{ matrix.python-version }}/
recursive: false
dest: stpyv8-debian-11-python-${{ matrix.python-version }}.zip

- name: STEP 8. Upload to release
uses: AButler/upload-release-assets@v2.0
with:
files: 'stpyv8-debian-11-python-${{ matrix.python-version }}.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
V8_HOME = os.environ.get('V8_HOME', os.path.join(STPYV8_HOME, 'v8'))

V8_GIT_URL = "https://chromium.googlesource.com/v8/v8.git"
V8_GIT_TAG_STABLE = "10.7.193.22"
V8_GIT_TAG_STABLE = "10.8.168.20"
V8_GIT_TAG_MASTER = "master"
V8_GIT_TAG = V8_GIT_TAG_STABLE
DEPOT_GIT_URL = "https://chromium.googlesource.com/chromium/tools/depot_tools.git"
Expand Down

0 comments on commit 670bc6a

Please sign in to comment.