Files
gronod 696a508ca9
Build Windows Packages / Build Windows (push) Failing after 40s
Build Linux Packages / Build Linux (push) Failing after 2m52s
feat: fetch ArgyllCMS binaries at build time and offer USB driver setup (#127)
- Fetch binary releases dynamically from Gronod/argyllcms at package/build time
- Add scripts/fetch-argyll.mjs and npm run fetch-argyll script
- Remove vendored platform binaries from git and update .gitignore
- Relocate test mocks to src-tauri/argyll/mocks/
- Add missing sidecar check in build.rs
- Configure NSIS installerHooks with hooks.nsh and installMode both
- Update all 6 GitHub/Gitea CI workflows with fetch and hard sidecar verification
- Update README, ROADMAP, and THIRDPARTY-LICENSES documentation
2026-08-29 09:25:45 +01:00

123 lines
3.4 KiB
YAML

name: Build Linux Packages
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-22.04
env:
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: "true"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- name: Rust Cache
uses: Swatinem/rust-cache@v2
continue-on-error: true
with:
workspaces: "src-tauri"
prefix-key: "v2-ubuntu-22.04"
- name: Install Tauri Linux dependencies
run: |
sudo apt-get update -qq
sudo apt-get install --no-install-recommends -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl wget file patchelf xdg-utils squashfs-tools zsync \
libayatana-appindicator3-dev \
librsvg2-dev \
libssl-dev \
libxss-dev \
libxinerama-dev \
libxrandr-dev \
libxxf86vm-dev \
libxcursor-dev \
libxi-dev
sudo apt-get install --no-install-recommends -y libfuse2 || sudo apt-get install --no-install-recommends -y libfuse2t64 || true
- name: Install Node dependencies
run: npm ci
- name: Set Release Environment
id: set_env
shell: bash
run: |
TAG="${{ github.ref_name }}"
SHORT_SHA=$(git rev-parse --short HEAD)
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
echo "PREFIX=ICCery_${TAG}-${SHORT_SHA}-linux-x86_64" >> $GITHUB_ENV
- name: Fetch ArgyllCMS binaries
env:
ARGYLL_RELEASE_TAG: ${{ vars.ARGYLL_RELEASE_TAG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run fetch-argyll -- --force --platform linux-x86_64
- name: Verify sidecar binaries
run: |
test -x src-tauri/argyll/linux-x86_64/instlist
test -x src-tauri/argyll/linux-x86_64/targen
test -x src-tauri/argyll/linux-x86_64/chartread
test -x src-tauri/argyll/linux-x86_64/colprof
- name: Build Tauri App
env:
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: "true"
run: npm run tauri build -- -v --bundles deb,appimage
- name: Prepare Release Assets
shell: bash
run: |
mkdir -p release-assets
# Stage Debian package
for deb in src-tauri/target/release/bundle/deb/*.deb; do
if [ -f "$deb" ]; then
cp "$deb" "release-assets/${PREFIX}.deb"
fi
done
# Stage AppImage package
for appimage in src-tauri/target/release/bundle/appimage/*.AppImage; do
if [ -f "$appimage" ]; then
cp "$appimage" "release-assets/${PREFIX}.AppImage"
fi
done
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PREFIX }}
path: release-assets/*
- name: Release on GitHub
uses: softprops/action-gh-release@v2
with:
files: release-assets/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}