Debian Codegraph @

.github/workflows/verify-build.yml

raw symbols SCIP
1 name: "Verify build"
2
3 on:
4 push:
5 pull_request:
6 schedule:
7 - cron: '0 6 * * 1'
8
9 jobs:
10 build:
11 strategy:
12 matrix:
13 include:
14 - os: ubuntu-latest
15 cc: gcc
16 cxx: g++
17
18 - os: ubuntu-latest
19 cc: clang
20 cxx: clang++
21
22 - os: macos-latest
23 cc: clang
24 cxx: clang++
25
26 runs-on: ${{ matrix.os }}
27
28 steps:
29 - name: Install smooth dependencies
30 if: ${{ runner.os == 'Linux' }}
31 run: |
32 sudo apt update
33 sudo apt install -y libbz2-dev libcurl4-openssl-dev libfribidi-dev libgtk-3-dev libjpeg-dev libxml2-dev
34
35 - name: Checkout smooth
36 uses: actions/checkout@v6
37 with:
38 repository: enzo1982/smooth
39 path: smooth
40
41 - name: Build smooth
42 env:
43 CC: ${{ matrix.cc }}
44 CXX: ${{ matrix.cxx }}
45 run: |
46 cd smooth
47 make -j$(nproc)
48 sudo make install prefix=/usr/local
49 cd ..
50
51 - name: Install dependencies
52 if: ${{ runner.os == 'Linux' }}
53 run: |
54 sudo apt update
55 sudo apt install -y libcdio-dev libcdio-paranoia-dev libexpat1-dev liburiparser-dev libpulse-dev
56
57 - name: Install dependencies macOS
58 if: ${{ runner.os == 'macOS' }}
59 run: |
60 wget https://ftp.gnu.org/gnu/libcdio/libcdio-2.1.0.tar.bz2
61 tar xfj libcdio-2.1.0.tar.bz2
62 cd libcdio-2.1.0
63 ./configure --prefix=/usr/local && make -j$(nproc) && sudo make install
64 cd ..
65 wget https://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-10.2+2.0.1.tar.bz2
66 tar xfj libcdio-paranoia-10.2+2.0.1.tar.bz2
67 cd libcdio-paranoia-10.2+2.0.1
68 sed -i -e "s/-Wl,--version-script=.*\.la\.ver//" lib/*/Makefile.in
69 ./configure --prefix=/usr/local && make -j$(nproc) && sudo make install
70 cd ..
71
72 - name: Checkout repository
73 uses: actions/checkout@v6
74 with:
75 # We must fetch at least the immediate parents so that if this is
76 # a pull request then we can checkout the head.
77 fetch-depth: 2
78
79 # If this run was triggered by a pull request event, then checkout
80 # the head of the pull request instead of the merge commit.
81 - run: git checkout HEAD^2
82 if: ${{ github.event_name == 'pull_request' }}
83
84 - name: Build
85 env:
86 CC: ${{ matrix.cc }}
87 CXX: ${{ matrix.cxx }}
88 run: |
89 make -j$(nproc)