-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (38 loc) · 1.19 KB
/
build-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Igel Linux Build with CMake
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch: # Allow manual triggering of the workflow
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install GCC versions
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install -y gcc-12 g++-12 gcc-13 g++-13
- name: Set GCC version
run: |
# Set GCC 14 as the default version
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
- name: Install CMake
run: sudo apt-get install -y cmake
- name: Download network file
run: wget https://github.com/vshcherbyna/igel/releases/download/3.5.0/c049c117 -O ./network_file
- name: Configure CMake
run: cmake -DEVALFILE=network_file -DUSE_AVX2=1 -D_BTYPE=1 -DSYZYGY_SUPPORT=TRUE .
- name: Build the project
run: make -j
- name: Run the bench
run: ./igel bench