Skip to content

Use monotonic time (clock_gettime) for cups_enum_dests #2914

Use monotonic time (clock_gettime) for cups_enum_dests

Use monotonic time (clock_gettime) for cups_enum_dests #2914

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
- 2.4.x
pull_request:
branches:
- master
- 2.4.x
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout CUPS sources
uses: actions/checkout@v4
- name: Show Ubuntu version
run: cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}'
- name: Update build environment
run: sudo apt-get update --fix-missing -y && sudo apt-get upgrade --fix-missing -y
- name: Install prerequisites
run: sudo apt-get install -y avahi-daemon libavahi-client-dev libssl-dev libpam-dev libusb-1.0-0-dev zlib1g-dev
- name: Configure CUPS
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-maintainer
- name: Build CUPS
run: make
- name: Test CUPS
run: make test || cat test/error_log*
build-linux-i386:
runs-on: ubuntu-latest
steps:
- name: Checkout CUPS sources
uses: actions/checkout@v4
- name: Show Ubuntu version
run: cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}'
- name: Setup multiarch for i386
run: sudo dpkg --add-architecture i386
- name: Update build environment
run: sudo apt-get update --fix-missing -y
- name: Install prerequisites
run: sudo apt-get install -y avahi-daemon libavahi-client-dev libavahi-client-dev:i386 libgnutls28-dev libgnutls28-dev:i386 libpam-dev libpam-dev:i386 libusb-1.0-0-dev libusb-1.0-0-dev:i386 zlib1g-dev zlib1g-dev:i386 crossbuild-essential-i386 libgcc-s1:i386 libstdc++6:i386
- name: Configure CUPS
env:
CC: /usr/bin/i686-linux-gnu-gcc
CXX: /usr/bin/i686-linux-gnu-g++
run: ./configure --enable-debug --enable-maintainer --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-tls=gnutls
- name: Build CUPS
run: make
- name: Test CUPS
run: make test || cat test/error_log*
build-macos:
runs-on: macos-latest
steps:
- name: Checkout CUPS sources
uses: actions/checkout@v4
- name: Install prerequisites
run: brew install cppcheck libjpeg libpng libusb openssl@3
- name: Configure CUPS
env:
LDFLAGS: -L/opt/homebrew/Cellar/openssl@3/3.3.0/lib
run: ./configure --enable-debug --enable-maintainer
- name: Build CUPS
run: make
- name: Test CUPS
run: make test || cat test/error_log*
build-windows:
runs-on: windows-latest
steps:
- name: Checkout CUPS sources
uses: actions/checkout@v4
- name: Configure CUPS
uses: microsoft/[email protected]
- name: Install prerequisites
run: cd vcnet; nuget restore cups.sln
- name: Build CUPS
run: cd vcnet; msbuild cups.sln