fork/oculante
git clone https://git.julia.blue/fork/oculante
6b4d770
0.9.2
1on : 2push : 3branches : [ "master" ] 4pull_request : 5# The branches below must be a subset of the branches above 6branches : [ "master" ] 7 8env : 9CARGO_TERM_COLOR : always 10MACOS_DEPLOYMENT_TARGET : 10.15 11 12name : Check OSX 13jobs : 14check : 15strategy : 16matrix : 17os : [ macos-14 ] 18runs-on : ${{ matrix.os }} 19steps : 20- uses : actions/checkout@v4 21- uses : ilammy/setup-nasm@v1 22- uses : Swatinem/rust-cache@v2 23 24# - name: Check without default features 25# run: cargo check --no-default-features --features notan/shaderc 26# if: matrix.os == 'macos-14' 27 28- name : intel heif test 29run : | 30rustc --version --verbose 31brew install libheif 32cargo install cargo-bundle 33cargo bundle --release --features "notan/shaderc heif" 34otool -L target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 35mkdir target/release/bundle/osx/oculante.app/Contents/Frameworks/ 36cp /usr/local/opt/libheif/lib/libheif.1.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 37cp /usr/local/opt/x265/lib/libx265.209.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 38cp /usr/local/opt/libde265/lib/libde265.0.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 39cp /usr/local/opt/aom/lib/libaom.3.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 40cp /usr/local/opt/webp/lib/libsharpyuv.0.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 41cp /usr/local/opt/libvmaf/lib/libvmaf.3.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 42install_name_tool -change /usr/local/opt/libheif/lib/libheif.1.dylib "@executable_path/../Frameworks/libheif.1.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 43install_name_tool -add_rpath "@executable_path/../Frameworks/libx265.209.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 44install_name_tool -add_rpath "@executable_path/../Frameworks/libde265.0.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 45install_name_tool -add_rpath "@executable_path/../Frameworks/libaom.3.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 46install_name_tool -add_rpath "@executable_path/../Frameworks/libsharpyuv.0.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 47install_name_tool -add_rpath "@executable_path/../Frameworks/libvmaf.3.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 48install_name_tool -change /usr/local/opt/x265/lib/libx265.209.dylib "@executable_path/../Frameworks/libx265.209.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 49install_name_tool -change /usr/local/opt/libde265/lib/libde265.0.dylib "@executable_path/../Frameworks/libde265.0.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 50install_name_tool -change /usr/local/opt/aom/lib/libaom.3.dylib "@executable_path/../Frameworks/libaom.3.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 51install_name_tool -change /usr/local/opt/webp/lib/libsharpyuv.0.dylib "@executable_path/../Frameworks/libsharpyuv.0.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 52install_name_tool -change /usr/local/opt/libvmaf/lib/libvmaf.3.dylib "@executable_path/../Frameworks/libvmaf.3.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libaom.3.dylib 53codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libvmaf.3.dylib 54codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libsharpyuv.0.dylib 55codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libaom.3.dylib 56codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libde265.0.dylib 57codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libx265.209.dylib 58codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 59otool -L target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 60cp Info.plist target/release/bundle/osx/oculante.app/Contents/Info.plist 61if : matrix.os == 'macos-12' 62 63- name : Zip Mac Intel Bundle 64run : mv target/release/bundle/osx/oculante.app . && zip -r oculante_app_intel.zip oculante.app 65if : matrix.os == 'macos-12' 66 67- name : Archive intel build 68uses : actions/upload-artifact@v4 69with : 70name : intel_build 71path : oculante_app_intel.zip 72if : matrix.os == 'macos-12' 73 74# - name: arm heif test 75# run: | 76# rustc --version --verbose 77# brew install libheif 78# cargo install cargo-bundle 79# cargo bundle --release --features "notan/shaderc heif" 80# otool -L target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 81# mkdir target/release/bundle/osx/oculante.app/Contents/Frameworks/ 82# cp /opt/homebrew/opt/libheif/lib/libheif.1.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 83# cp /opt/homebrew/opt/x265/lib/libx265.209.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 84# cp /opt/homebrew/opt/libde265/lib/libde265.0.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 85# cp /opt/homebrew/opt/aom/lib/libaom.3.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 86# cp /opt/homebrew/opt/webp/lib/libsharpyuv.0.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 87# cp /opt/homebrew/opt/libvmaf/lib/libvmaf.3.dylib target/release/bundle/osx/oculante.app/Contents/Frameworks/ 88# install_name_tool -change /opt/homebrew/opt/libheif/lib/libheif.1.dylib "@executable_path/../Frameworks/libheif.1.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 89# install_name_tool -add_rpath "@executable_path/../Frameworks/libx265.209.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 90# install_name_tool -add_rpath "@executable_path/../Frameworks/libde265.0.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 91# install_name_tool -add_rpath "@executable_path/../Frameworks/libaom.3.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 92# install_name_tool -add_rpath "@executable_path/../Frameworks/libsharpyuv.0.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 93# install_name_tool -add_rpath "@executable_path/../Frameworks/libvmaf.3.dylib" target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 94# install_name_tool -change /opt/homebrew/opt/x265/lib/libx265.209.dylib "@executable_path/../Frameworks/libx265.209.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 95# install_name_tool -change /opt/homebrew/opt/libde265/lib/libde265.0.dylib "@executable_path/../Frameworks/libde265.0.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 96# install_name_tool -change /opt/homebrew/opt/aom/lib/libaom.3.dylib "@executable_path/../Frameworks/libaom.3.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 97# install_name_tool -change /opt/homebrew/opt/webp/lib/libsharpyuv.0.dylib "@executable_path/../Frameworks/libsharpyuv.0.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 98# install_name_tool -change /opt/homebrew/opt/libvmaf/lib/libvmaf.3.dylib "@executable_path/../Frameworks/libvmaf.3.dylib" target/release/bundle/osx/oculante.app/Contents/Frameworks/libaom.3.dylib 99# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libvmaf.3.dylib 100# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libsharpyuv.0.dylib 101# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libaom.3.dylib 102# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libde265.0.dylib 103# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libx265.209.dylib 104# codesign -s "-" -fv target/release/bundle/osx/oculante.app/Contents/Frameworks/libheif.1.dylib 105# otool -L target/release/bundle/osx/oculante.app/Contents/MacOS/oculante 106# cp Info.plist target/release/bundle/osx/oculante.app/Contents/Info.plist 107# if: matrix.os == 'macos-14' 108 109# - name: Zip Mac Arm Bundle 110# run: mv target/release/bundle/osx/oculante.app . && zip -r oculante_app_arm.zip oculante.app 111# if: matrix.os == 'macos-14' 112 113# - name: Archive arm build 114# uses: actions/upload-artifact@v4 115# with: 116# name: arm_build 117# path: oculante_app_arm.zip 118# if: matrix.os == 'macos-14' 119 120- name : Cargo build on Apple Silicon 121run : | 122rustc --version --verbose 123# cargo install cargo-bundle 124cargo build 125if : matrix.os == 'macos-14' 126 127# - name: Zip Mac Arm Bundle 128# run: | 129# rm -rf oculante.app 130# mv target/release/bundle/osx/oculante.app . && zip -r oculante_app_arm_noheif.zip oculante.app 131# if: matrix.os == 'macos-14' 132 133# - name: Archive arm build 134# uses: actions/upload-artifact@v4 135# with: 136# name: arm_build2 137# path: oculante_app_arm_noheif.zip 138# if: matrix.os == 'macos-14'