Skip to content

Commit 7f147bc

Browse files
authored
add github actions support (#293)
add github actions support
1 parent f038da3 commit 7f147bc

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Igel Build with CMake
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch: # Allow manual triggering of the workflow
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
os: [ ubuntu-latest ]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Install GCC versions
25+
run: |
26+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
27+
sudo apt-get update
28+
sudo apt-get install -y gcc-12 g++-12 gcc-13 g++-13
29+
30+
- name: Set GCC version
31+
run: |
32+
# Set GCC 14 as the default version
33+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
34+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
35+
36+
- name: Install CMake
37+
run: sudo apt-get install -y cmake
38+
39+
- name: Download network file
40+
run: wget https://github.com/vshcherbyna/igel/releases/download/3.5.0/c049c117 -O ./network_file
41+
42+
- name: Configure CMake
43+
run: cmake -DEVALFILE=network_file -DUSE_AVX2=1 -D_BTYPE=1 -DSYZYGY_SUPPORT=TRUE .
44+
45+
- name: Build the project
46+
run: make -j

src/nnue.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "position.h"
2222
#include "utils.h"
2323
#include <immintrin.h>
24-
2524
#include <streambuf>
2625

2726
#include "incbin/incbin.h"

src/nnue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include <string>
2424
#include <memory>
25+
#include <cstdint>
2526
#include <immintrin.h>
2627

2728
#include "types.h"

src/time.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#ifndef TIME_H
2121
#define TIME_H
2222

23+
#include <cstdint>
2324
#include "types.h"
2425

2526
class Time

src/types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#ifndef TYPES_H
2222
#define TYPES_H
2323

24+
#include <cstdint>
2425
#include <cassert>
2526
#include <cmath>
2627
#include <cstdlib>

0 commit comments

Comments
 (0)