Merge pull request #1398 from OpenPrinting/dependabot/github_actions/… #3420
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v5 | |
| - 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 cups/test.log; test -f test/error_log && cat test/error_log*) | |
| build-linux-gnutls: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout CUPS sources | |
| uses: actions/checkout@v5 | |
| - 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 | |
| - name: Install prerequisites | |
| run: sudo apt-get install -y avahi-daemon libavahi-client-dev libgnutls28-dev libpam-dev libusb-1.0-0-dev zlib1g-dev | |
| - name: Configure CUPS | |
| env: | |
| CC: /usr/bin/gcc | |
| CXX: /usr/bin/g++ | |
| run: ./configure --enable-debug --enable-maintainer --with-tls=gnutls | |
| - name: Build CUPS | |
| run: make | |
| - name: Test CUPS | |
| run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*) | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout CUPS sources | |
| uses: actions/checkout@v5 | |
| - 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 cups/test.log; test -f test/error_log && cat test/error_log*) | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout CUPS sources | |
| uses: actions/checkout@v5 | |
| - name: Configure CUPS | |
| uses: microsoft/setup-msbuild@v2.0.0 | |
| - name: Install prerequisites | |
| run: cd vcnet; nuget restore cups.sln | |
| - name: Build CUPS | |
| run: cd vcnet; msbuild cups.sln |