-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from cloudflare/branch-10.8
Google V8 - Branch 10.8
- Loading branch information
Showing
3 changed files
with
122 additions
and
1 deletion.
There are no files selected for viewing
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
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 }} |
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
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 }} |
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