intel.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright (C) 2000 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: Linux
  5. on:
  6. # Trigger the workflow on push or pull requests, but only for the
  7. # master branch
  8. push:
  9. branches:
  10. - master
  11. - '*/ci'
  12. pull_request:
  13. branches:
  14. - master
  15. jobs:
  16. autotools:
  17. name: ${{ matrix.build.name }}
  18. runs-on: 'ubuntu-latest'
  19. timeout-minutes: 60
  20. strategy:
  21. fail-fast: false
  22. matrix:
  23. build:
  24. - name: Intel compiler - without SSL
  25. install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
  26. configure: CC=icc --enable-debug --without-ssl
  27. - name: Intel compiler - OpenSSL
  28. install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libssl-dev
  29. configure: CC=icc --enable-debug --with-openssl
  30. steps:
  31. - run: |
  32. sudo apt-get update
  33. sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
  34. sudo python3 -m pip install impacket
  35. name: 'install prereqs and impacket'
  36. - run: |
  37. cd /tmp
  38. wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
  39. sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
  40. rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
  41. sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
  42. sudo apt install --no-install-recommends intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
  43. source /opt/intel/oneapi/setvars.sh
  44. printenv >> $GITHUB_ENV
  45. name: 'Install Intel compilers'
  46. - uses: actions/checkout@v3
  47. - run: autoreconf -fi
  48. name: 'autoreconf'
  49. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  50. name: 'configure'
  51. - run: make V=1
  52. name: 'make'
  53. - run: make V=1 examples
  54. name: 'make examples'
  55. - run: make V=1 test-ci
  56. name: 'test'
  57. env:
  58. TFLAGS: "${{ matrix.build.tflags }}"