-
Notifications
You must be signed in to change notification settings - Fork 26
70 lines (61 loc) · 1.66 KB
/
alexandria.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Alexandria
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Alexandria:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {
name: "Ubuntu 24.04 GCC",
os: ubuntu-24.04,
compiler: g++,
comp: gcc,
shell: 'bash {0}'
}
- {
name: "Windows 2022 GCC",
os: windows-2022,
compiler: g++,
comp: mingw,
msys_sys: 'mingw64',
msys_env: 'x86_64-gcc',
shell: 'msys2 {0}'
}
defaults:
run:
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download required linux packages
if: runner.os == 'Linux'
run: |
sudo apt-get install g++
sudo apt update
sudo apt install expect valgrind g++-multilib qemu-user
- name: Install windows make
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.config.msys_sys}}
install: mingw-w64-${{matrix.config.msys_env}} make git expect
- name: download net
run: curl -sOL https://github.com/PGG106/Alexandria-networks/releases/download/net01/1536x16.net
- name: make
if: runner.os == 'Linux'
run: make build=debug EVALFILE=1536x16.net -j
- name: make build windows
if: runner.os == 'Windows'
run: make build=release EVALFILE=1536x16.net -j
- name: Bench
run: |
./Alexandria* bench