forked from toppers/athrill-target-rh850f1x
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.41 KB
/
build.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
name: build
on:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: true # Fetch athrill repo
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build athrill for Linux
if: " (matrix.os == 'ubuntu-20.04')"
run: |
sudo apt-get update
sudo apt-get install -y libspdlog-dev
cd hakoniwa-core-cpp-client
git submodule update --init --recursive
cd ../
bash build.bash all
./athrill/bin/linux/athrill2
- name: Build athrill for Mac
if: " (matrix.os == 'macos-latest') "
run: |
brew install spdlog
cd hakoniwa-core-cpp-client
git submodule update --init --recursive
cd ../
bash build.bash all
cd build_linux
./athrill2
# - name: Setup MinGW for Windows
# if: matrix.os == 'windows-latest'
# uses: egor-tensin/setup-mingw@v2
# - name: Build athrill for Windows
# if: matrix.os == 'windows-latest'
# run: |
# mkdir build
# cd build
# cmake -G"MinGW Makefiles" ..
# make
# .\athrill2.exe