fix(deps): update tonic monorepo to 0.12 #6306
Workflow file for this run
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
--- | |
on: [push] | |
name: Build | |
jobs: | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install native dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
libasound2-dev \ | |
libavahi-client-dev \ | |
xorg-dev \ | |
libgtk-3-dev \ | |
libclang-dev \ | |
libudev-dev \ | |
curl \ | |
lld \ | |
ffmpeg \ | |
libavcodec-dev \ | |
libavdevice-dev \ | |
libavfilter-dev \ | |
libavformat-dev \ | |
libavutil-dev \ | |
libpostproc-dev \ | |
libswresample-dev \ | |
libswscale-dev \ | |
libass-dev \ | |
libfreetype6-dev \ | |
libgnutls28-dev \ | |
libsdl2-dev \ | |
libtool \ | |
libva-dev \ | |
libvdpau-dev \ | |
libvorbis-dev \ | |
libxcb1-dev \ | |
libxcb-shm0-dev \ | |
libxcb-xfixes0-dev \ | |
zlib1g-dev \ | |
libx264-dev \ | |
libx265-dev \ | |
libnuma-dev \ | |
libvpx-dev \ | |
libmp3lame-dev \ | |
libopus-dev \ | |
libraw1394-dev \ | |
libdc1394-dev \ | |
libavc1394-dev \ | |
libiec61883-dev \ | |
libjack-dev \ | |
libfaad-dev \ | |
libgsm1-dev \ | |
libzmq3-dev \ | |
libssh-dev \ | |
libbluray-dev \ | |
libopenmpt-dev \ | |
ocl-icd-opencl-dev \ | |
libogg-dev \ | |
libspeex-dev \ | |
libtheora-dev \ | |
flite1-dev \ | |
libchromaprint-dev \ | |
libopenal-dev \ | |
libcdio-dev \ | |
libcaca-dev \ | |
libpocketsphinx-dev \ | |
libsphinxbase-dev \ | |
libbs2b-dev \ | |
liblilv-dev \ | |
libsratom-dev \ | |
libsord-dev \ | |
libserd-dev \ | |
librubberband-dev \ | |
libsamplerate0-dev \ | |
libmysofa-dev \ | |
libvidstab-dev \ | |
libgme-dev \ | |
librabbitmq-dev \ | |
libdav1d-dev \ | |
libzvbi-dev \ | |
libsnappy-dev \ | |
libaom-dev \ | |
libcodec2-dev \ | |
libshine-dev \ | |
libtwolame-dev \ | |
libwebp-dev \ | |
libxvidcore-dev \ | |
libsoxr-dev \ | |
libcdio-paranoia-dev \ | |
libcdio-cdda-dev \ | |
libsrt-gnutls-dev \ | |
libmfx-dev \ | |
libvorbis-dev \ | |
libwavpack-dev \ | |
libzimg-dev \ | |
yasm | |
- uses: taiki-e/install-action@protoc | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: "crates/ui/pubspec.yaml" | |
- uses: Swatinem/rust-cache@v2 | |
- name: Remove ndi libs from cache | |
run: rm -rf target/release/deps/libndi* target/release/build/ndi-* | |
- name: Remove linked flutter libs from cache | |
run: rm -rf target/release/lib target/release/deps/libflutter_linux_gtk.so | |
- name: Build Headless | |
run: make build-headless | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: linux-headless | |
path: target/release/mizer | |
if-no-files-found: error | |
- name: Build | |
run: make build-release | |
- name: Package | |
run: make mizer.zip | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: linux-full | |
path: mizer.zip | |
if-no-files-found: error | |
bundle-flatpak: | |
runs-on: ubuntu-latest | |
needs: | |
- build-linux | |
steps: | |
- name: Install flatpak | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y flatpak flatpak-builder | |
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Fetch artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-full | |
- name: Bundle | |
run: make mizer.flatpak | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Flatpak | |
path: mizer.flatpak | |
if-no-files-found: error | |
verify-linux: | |
runs-on: ubuntu-latest | |
needs: | |
- build-linux | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Fetch artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-full | |
- name: Unzip artifact | |
run: unzip mizer.zip -d artifact | |
- name: Verify ffmpeg is statically linked | |
working-directory: artifact | |
run: nm mizer | grep ff_mpeg | |
build-macos: | |
runs-on: macos-14 | |
steps: | |
- name: Install build dependencies | |
run: brew install protobuf ffmpeg pkg-config yasm cbindgen | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: "crates/ui/pubspec.yaml" | |
- uses: Swatinem/rust-cache@v2 | |
- name: Remove ndi libs from cache | |
run: rm -rf target/release/deps/libndi* target/release/build/ndi-* | |
- name: Remove linked flutter libs from cache | |
run: rm -rf target/release/lib | |
- name: Build | |
run: make build-release | |
env: | |
LIBUSB_STATIC: "true" | |
- name: Package | |
run: make mizer.zip | |
env: | |
LIBUSB_STATIC: "true" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: macos-full | |
path: mizer.zip | |
if-no-files-found: error | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Install build dependencies | |
run: choco install protoc make wget yasm ffmpeg yq | |
shell: bash | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: "crates/ui/pubspec.yaml" | |
- name: Build | |
run: make build-release | |
continue-on-error: true | |
- name: Package | |
run: make mizer.zip | |
continue-on-error: true | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: windows-full | |
path: mizer.zip | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ghcr.io/maxjoehnk/node-based-mizer | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GHCR | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-android-remote: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: "crates/ui/pubspec.yaml" | |
- name: Generate FFI bindings | |
run: make generate_bindings | |
working-directory: crates/ui | |
- name: Build | |
run: flutter build apk -t lib/mobile/main.dart | |
working-directory: crates/ui | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: android-remote | |
path: crates/ui/build/app/outputs/flutter-apk/app-release.apk | |
if-no-files-found: error |