2022-02-07 01:07:04 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- dev/*
|
|
|
|
pull_request: {}
|
|
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y --no-install-recommends \
|
|
|
|
python3-opencv python3-pil python3-tqdm python3-dev \
|
|
|
|
libvulkan-dev glslang-dev glslang-tools swig
|
|
|
|
pip install wheel
|
2022-02-08 05:06:26 +00:00
|
|
|
- name: Build wheels
|
|
|
|
run: |
|
|
|
|
pip wheel -w /tmp/wheels \
|
2022-02-07 01:07:04 +00:00
|
|
|
rife-ncnn-vulkan-python@git+https://github.com/media2x/rife-ncnn-vulkan-python.git .
|
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
2022-02-08 05:06:26 +00:00
|
|
|
tar cJvf /tmp/video2x-nightly-wheels.txz /tmp/wheels/*
|
2022-02-07 01:07:04 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: video2x-nightly-wheels
|
2022-02-08 05:06:26 +00:00
|
|
|
path: /tmp/video2x-nightly-wheels.txz
|