-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
name: "Build a manylinux wheel" | ||
|
||
on: | ||
push: | ||
branches: | ||
- manylinux-release | ||
|
||
jobs: | ||
build-wheel: | ||
name: Build manylinux wheel | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y wget software-properties-common wget lsb-release gnupg | ||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null | ||
sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa | ||
sudo apt-get install cmake g++-10 | ||
- name: Install vcpkg | ||
run: | | ||
git clone https://github.com/microsoft/vcpkg.git | ||
cd vcpkg && ./bootstrap-vcpkg.sh | ||
echo "VCPKG_ROOT=${{github.workspace}}/vcpkg" >> $GITHUB_ENV | ||
echo "${{github.workspace}}/vcpkg" >> $GITHUB_PATH | ||
./vcpkg integrate install | ||
- name: Install dependencies | ||
run: python -m pip install -U pip "pybind11[global]" cmake build | ||
|
||
- name: Build | ||
run: python -m build -o dist | ||
|
||
- name: Upload wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ubuntu-20.04 wheel | ||
path: ${{github.workspace}}/dist/*.whl |
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
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
|
||
apt update && apt install git -y | ||
python -m pip install | ||
export VCPKG_ROOT=${PWD} | ||
export PATH=\$VCPKG_ROOT:\$PATH | ||
|
||
cd /acquire-zarr | ||
/usr/bin/python3 -m build -o dist | ||
/usr/bin/ls -l dist |