Skip to content

Commit

Permalink
Merge branch 'master' of git+ssh://github.com/lavavu/LavaVu
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed Feb 7, 2025
2 parents 9170d04 + a725b07 commit 2bfe606
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 112 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# - Creates a release on matching tag push
# - builds latest minimal ffmpeg for wheels
# - builds new emscripten wasm
# - uploads release assets
# - updates lavavu.github.io repo
Expand All @@ -15,7 +14,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
needs: ffmpeg #Required to prevent the subsequent deploy jobs running until this job finishes
steps:
- uses: mymindstorm/setup-emsdk@v7

Expand Down Expand Up @@ -81,78 +79,4 @@ jobs:
git tag ${{ steps.get_version.outputs.VERSION }}
git push origin --tags
ffmpeg:
# https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_28_x86_64
steps:
- name: Install deps
run: |
dnf install -y autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make pkgconfig zlib-devel zip
- name: Build nasm
run: |
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2
tar xjf nasm-2.15.05.tar.bz2
cd nasm-2.15.05
./autogen.sh
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make -j$(nproc)
make install
- name: Build yasm
run: |
cd ~/ffmpeg_sources
curl -O -L https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make -j$(nproc)
make install
- name: Build x264
run: |
cd ~/ffmpeg_sources
git clone --branch stable --depth 1 https://code.videolan.org/videolan/x264.git
cd x264
export PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-shared
make -j$(nproc)
make install
- name: Build ffmpeg
run: |
cd ~/ffmpeg_sources/
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjf ffmpeg-snapshot.tar.bz2
cd ffmpeg
export PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include -fPIC -m64" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs=-lpthread --extra-libs=-lm --bindir="$HOME/bin" --enable-gpl --enable-libfreetype --enable-libx264 --enable-nonfree --enable-shared --enable-pic --extra-ldexeflags=-pie
make -j$(nproc)
make install
- name: Zip
run: |
cd ~/ffmpeg_build/; rm -rf lib/*.a; zip --symlinks -r /ffmpeg-mini lib/* include/*
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ffmpeg-mini
path: /ffmpeg-mini.zip

ffmpeg-upload:
runs-on: ubuntu-latest
needs: [build, ffmpeg]
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ffmpeg-mini

- name: Upload ffmpeg build to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ffmpeg-mini.zip
asset_name: ffmpeg-mini.zip
tag: ${{ github.ref }}

36 changes: 36 additions & 0 deletions .github/workflows/test_wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: WheelTest

on:
workflow_dispatch:
#push:

jobs:
test:
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, macos-14]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@master
with:
repository: LavaVu/Testing
path: Testing
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install wheel
run: python -m pip install --only-binary=lavavu lavavu
- name: Run tests
env:
LV_CONTEXT: moderngl
LV_ECHO_FAIL: 1
LV_ARGS: -v
run: >
pip install moderngl &&
cd Testing &&
python runall.py
31 changes: 0 additions & 31 deletions .github/workflows/wheel_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,34 +112,3 @@ jobs:
#with:
# repository-url: https://test.pypi.org/legacy/

test:
needs: [upload_pypi]
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, macos-14]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@master
with:
repository: LavaVu/Testing
path: Testing
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install wheel
run: python -m pip install --only-binary=lavavu lavavu
- name: Run tests
run: >
pip install moderngl &&
git clone --depth 1 https://github.com/lavavu/Testing &&
cd Testing &&
export LV_CONTEXT=moderngl &&
export LV_ECHO_FAIL=1 &&
export LV_ARGS="-v" &&
python runall.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://github.com/lavavu/LavaVu/workflows/Test/badge.svg)](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
[![Deploy Status](https://github.com/lavavu/LavaVu/workflows/Deploy/badge.svg?branch=1.7.3)](https://github.com/lavavu/LavaVu/actions?query=workflow:Deploy)
[![DOI](https://zenodo.org/badge/45163055.svg)](https://zenodo.org/badge/latestdoi/45163055)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.8.84)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.0)

A scientific visualisation tool with a python interface for fast and flexible visual analysis.

Expand Down
2 changes: 1 addition & 1 deletion binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/lavavu/lavavu:1.8.84
FROM ghcr.io/lavavu/lavavu:1.9.0
2 changes: 1 addition & 1 deletion docs/src/Installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ A base dockerfile is provided in the repository root.
You can try it out on binder

.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/lavavu/LavaVu/1.8.84
:target: https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.0


2 changes: 1 addition & 1 deletion lavavu/html/webview.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<input id="fileinput" type="file" style="visibility:hidden" onchange="useFileInput(this)" />

<script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.8.84/LavaVu-amalgamated.min.js"></script>
<script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.9.0/LavaVu-amalgamated.min.js"></script>
<!--script src="dat.gui.min.js"></script>
<script src="OK-min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#Current version
#(must be of the form X.Y.Z to trigger wheel builds)
version = "1.8.84"
version = "1.9.0"

"""
To release a new verison:
Expand Down

0 comments on commit 2bfe606

Please sign in to comment.