Feature/inux ci #14
@@ -0,0 +1,56 @@
|
||||
name: Linux x86_64 Release Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
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
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: argyllcms-linux-x86_64-bin
|
||||
path: Argyll_V*_linux_x86_64_bin.tgz
|
||||
+1
-1
@@ -646,7 +646,7 @@ static int icompaths_fs_excluded(icompaths *p, icompath *path) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < p->exno; i++) {
|
||||
if (strcmp(p->exlist[i], path->spath) == 0) {
|
||||
if (strcmp(p->exlist[i], "1") == 0 || strcasecmp(p->exlist[i], "all") == 0 || strcmp(p->exlist[i], path->spath) == 0) {
|
||||
a1logd(p->log, 5, "excluding '%s' from fast scan\n",path->spath);
|
||||
return 1;
|
||||
}
|
||||
|
||||
+5
-2
@@ -61,8 +61,8 @@ char *dpath /* path to device */
|
||||
|
||||
a1logd(log, 6, "usb_check_and_add: given '%s'\n",dpath);
|
||||
|
||||
/* Open the device so that we can read it */
|
||||
if ((fd = open(dpath, O_RDONLY)) < 0) {
|
||||
/* Open the device so that we can read it without blocking */
|
||||
if ((fd = open(dpath, O_RDONLY | O_NONBLOCK)) < 0) {
|
||||
a1logd(log, 1, "usb_check_and_add: failed to open '%s'\n",dpath);
|
||||
return ICOM_OK;
|
||||
}
|
||||
@@ -283,6 +283,9 @@ icompaths *p
|
||||
char path2[PATH_MAX];
|
||||
struct stat statbuf;
|
||||
|
||||
if (strncmp(e1->d_name, "usb", 3) != 0)
|
||||
continue;
|
||||
|
||||
/* Hmm. This will go badly wrong if this is a /dev/usbdev%d.%d_ep%d, */
|
||||
/* since we're not expecting the end points to be separate devices. */
|
||||
/* Maybe that's deprectated though... */
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ if $(UNIX) {
|
||||
}
|
||||
# Genfile actually creates libtiff/tif_config.h and libtiff/tiffconf.h:
|
||||
GenFileNND libtiff/tif_config.h :
|
||||
"(cd $(SUBDIR); chmod +x configure ; $(CROSS_ENV) ./configure $(CROSS_HOST) --disable-old-jpeg --disable-pixarlog --disable-zlib --disable-jbig)" : configure ;
|
||||
"(cd $(SUBDIR); chmod +x configure ; $(CROSS_ENV) ./configure $(CROSS_HOST) --disable-old-jpeg --disable-pixarlog --disable-zlib --disable-jbig --disable-lzma)" : configure ;
|
||||
# Workaround Jam problem of two products from one action:
|
||||
FakeFile libtiff/tiffconf.h : libtiff/tif_config.h ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user