mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-20 14:38:58 -04:00
* Move postinstall script to a preprep script - Fix libheif crate failing to build with our libheif - Rework CI due to postinstall to preprep changes * Linux heif build script + Update webp * Fix ctrl+c/ctrl+v bug * Improve libheif linux script - Add support for linux aarch64 - Add CI workflow to build libheif for linux - Some other misc fixes * Fix libheif CI requires sudo * Fix wrong path for libheif build.rs override in Windows * Fix wrong path manipulations in libheif build script * 🤦 * Use ubuntu-latest in libheif action - Specify glib version in target triple to support old distros - Fix libheif artifact publishing * Fix artifact upload path again * Add musl support for libheif - Remove unused files from libheif artifact - Add setup logic for libheif in postinstall script * Build libheif for linux as a shared lib * Fix meson not building the correct arch - Add logic to get git branch from githubs CI env vars * libheif finnaly works on linux - Make spacedrive binary rpath point to where appimage and deb expects our libs to be - Add some logic to tauri.js to convince tauri to bundle our shared libs - Work-around appimage bundling step breaking sometimes - Add logic to handle sigint in tauri.js to ensure we clean up after ourselves - Rename postinstall.mjs to setup.mjs - Add logic to setup.mjs to point our dev build to our shared libs in linux * Fix windows dekstop dev - Rename setup.mjs to preprep.mjs * test cache-factory * Fix preprep script not parsing the cross compilation target triple and always using the host info to download dependencies - Fix action env vars not being correctly passed - Remove possibility to pass multiple targests to rust action * Don't compile mobile crates on desktop targets * Remove cache-factory pull_request trigger * remove patched tauri cli * Use git plumbing command to get remote branch name - Fallback to reading .git/HEAD if remote name was not retrieved * fix type --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Build libheif for linux
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/libheif-linux.yml'
|
|
- '.github/scripts/libheif-linux.sh'
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/libheif-linux.yml'
|
|
- '.github/scripts/libheif-linux.sh'
|
|
workflow_dispatch:
|
|
|
|
# Cancel previous runs of the same workflow on the same branch.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-libheif-linux:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
settings:
|
|
- host: ubuntu-latest
|
|
target: x86_64-linux-gnu
|
|
- host: ubuntu-latest
|
|
target: aarch64-linux-gnu
|
|
- host: ubuntu-latest
|
|
target: x86_64-linux-musl
|
|
- host: ubuntu-latest
|
|
target: aarch64-linux-musl
|
|
name: Build LibHeif Linux ${{ matrix.settings.target }}
|
|
runs-on: ${{ matrix.settings.host }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build libheif
|
|
run: |
|
|
set -euxo pipefail
|
|
|
|
sudo .github/scripts/libheif-linux.sh ${{ matrix.settings.target }}
|
|
|
|
sudo chown -R "$(id -u):$(id -g)" .github/scripts/src/prefix
|
|
|
|
# Remove uneeded files
|
|
rm -rf .github/scripts/src/prefix/{share,lib/{cmake,pkgconfig}}
|
|
find .github/scripts/src/prefix -empty -delete
|
|
|
|
find .github/scripts/src/prefix -name 'libheif.so*' -exec realpath -s --relative-to=.github/scripts/src/prefix {} + \
|
|
| xargs env XZ_OPT='-T0 -9' tar -cJf "libheif-${{ matrix.settings.target }}.tar.xz" -C .github/scripts/src/prefix include/libheif
|
|
|
|
- name: Publish libheif
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: libheif-${{ matrix.settings.target }}
|
|
path: libheif-${{ matrix.settings.target }}.tar.xz
|
|
if-no-files-found: error
|