66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
name: Linux x86_64 Release Build
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential gcc make jam \
|
|
libx11-dev libxext-dev libxxf86vm-dev libxinerama-dev \
|
|
libxrandr-dev libxau-dev libxdmcp-dev libxss-dev \
|
|
libssl-dev libpng-dev libjpeg-dev libtiff-dev zlib1g-dev \
|
|
tar gzip zip
|
|
|
|
- name: Build ArgyllCMS
|
|
run: |
|
|
export OSTYPE=linux-gnu
|
|
export MACHTYPE=x86_64-pc-linux-gnu
|
|
export HOSTTYPE=x86_64
|
|
jam -q -fJambase -j$(nproc) -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install
|
|
|
|
- name: Smoke Tests
|
|
env:
|
|
ARGYLL_NOT_INTERACTIVE: "1"
|
|
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
|
run: |
|
|
./bin/dispcal -? || true
|
|
./bin/chartread -? || true
|
|
./bin/colprof -? || true
|
|
./bin/targen -? || true
|
|
|
|
- name: Package Release
|
|
run: |
|
|
./makepackagebin.sh
|
|
TAG="${{ github.ref_name }}"
|
|
SHORT_SHA="$(git rev-parse --short HEAD)"
|
|
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
|
|
mv Argyll_V*_linux_x86_64_bin.tgz "Argyll_${TAG}_${SHORT_SHA}_linux_x86_64_bin.tgz"
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Argyll_${{ github.ref_name }}_${{ env.SHORT_SHA }}_linux_x86_64_bin
|
|
path: Argyll_*_linux_x86_64_bin.tgz
|
|
|
|
- name: Upload Release Asset
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: Release ${{ github.ref_name }}
|
|
body: "Release ${{ github.ref_name }} built from commit ${{ github.sha }}"
|
|
files: Argyll_*_linux_x86_64_bin.tgz
|