|
22 | 22 | compiler: clang |
23 | 23 | cc: clang |
24 | 24 | cxx: clang++ |
25 | | - - os: ubuntu-latest |
26 | | - compiler: intel-icx |
27 | | - cc: icx |
28 | | - cxx: icpx |
29 | 25 | - os: windows-latest |
30 | 26 | compiler: msvc |
31 | 27 | - os: macos-latest |
|
34 | 30 | steps: |
35 | 31 | - uses: actions/checkout@v4 |
36 | 32 |
|
37 | | - - name: Install Intel oneAPI (Linux) |
38 | | - if: matrix.compiler == 'intel-icx' && runner.os == 'Linux' |
39 | | - run: | |
40 | | - wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB |
41 | | - sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB |
42 | | - echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list |
43 | | - sudo apt-get update |
44 | | - sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic |
45 | | - |
46 | | - - name: Setup Intel oneAPI environment |
47 | | - if: matrix.compiler == 'intel-icx' && runner.os == 'Linux' |
48 | | - run: | |
49 | | - source /opt/intel/oneapi/setvars.sh |
50 | | - echo "CC=icx" >> $GITHUB_ENV |
51 | | - echo "CXX=icpx" >> $GITHUB_ENV |
52 | | - echo "/opt/intel/oneapi/compiler/latest/bin" >> $GITHUB_PATH |
| 33 | + |
53 | 34 |
|
54 | 35 | - name: Configure CMake |
55 | 36 | run: > |
|
58 | 39 | -DPCG_CPP_BUILD_TESTS=ON |
59 | 40 | -DCMAKE_BUILD_TYPE=Release |
60 | 41 | env: |
61 | | - CC: ${{ matrix.cc || env.CC }} |
62 | | - CXX: ${{ matrix.cxx || env.CXX }} |
| 42 | + CC: ${{ matrix.cc }} |
| 43 | + CXX: ${{ matrix.cxx }} |
63 | 44 |
|
64 | 45 | - name: Build |
65 | 46 | run: cmake --build build --config Release |
|
82 | 63 | shell: pwsh |
83 | 64 | run: | |
84 | 65 | ./test-high/run-tests.ps1 |
| 66 | +
|
| 67 | + freebsd: |
| 68 | + runs-on: ubuntu-latest |
| 69 | + name: FreeBSD |
| 70 | + steps: |
| 71 | + - uses: actions/checkout@v4 |
| 72 | + |
| 73 | + - name: Test on FreeBSD |
| 74 | + uses: vmactions/freebsd-vm@v1 |
| 75 | + with: |
| 76 | + usesh: true |
| 77 | + prepare: pkg install -y cmake |
| 78 | + run: | |
| 79 | + cmake -B build -DPCG_CPP_BUILD_SAMPLES=ON -DPCG_CPP_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release |
| 80 | + cmake --build build --config Release |
| 81 | + cd build |
| 82 | + ctest -C Release --output-on-failure |
| 83 | + cd .. |
| 84 | + chmod +x ./test-high/run-tests.sh |
| 85 | + ./test-high/run-tests.sh |
0 commit comments