-
Notifications
You must be signed in to change notification settings - Fork 6
160 lines (159 loc) · 5.82 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: Build
run-name: ${{ github.actor }} Building
on:
workflow_dispatch:
push:
branches:
- master
jobs:
# windows-latest
# windows-2022
# windows-2019
# ubuntu-latest
# ubuntu-22.04
# ubuntu-20.04
# ubuntu-18.04
# macos-latest
# macos-13
# macos-12
# macos-11
Build_on_Mac:
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@master
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install boost
env HOMEBREW_NO_AUTO_UPDATE=1 brew install php
env HOMEBREW_NO_AUTO_UPDATE=1 brew install snappy
- name: Run Configure
run: |
./configure --disable-vera
./init3rdParty
- name: Make
run: make release-only
- run: ./runTests
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: DataOSX
path: |
Stats.html
Conformance.Darwin.html
Performance.Darwin.html
nano Performance.csv
Build_on_Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install the latest gcc compiler.
run: |
sudo apt-get install build-essential
sudo apt-get install g++-14
dir /usr/bin
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
- name: Install Dependencies
run: |
sudo apt-get install libboost-all-dev
sudo apt-get install libsnappy-dev
sudo apt-get install php
- name: Run Configure
run: |
./configure --disable-vera
./init3rdParty
- name: Make
run: |
make release-only
- run: ./runTests
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: DataLinux
path: |
Conformance.Linux.html
Performance.Linux.html
nano Performance.csv
Generate_Blog:
# needs: [Build_on_Mac, Build_on_Linux, Build_on_Windows]
needs: [Build_on_Mac, Build_on_Linux]
runs-on: ubuntu-latest
steps:
- name: GetBlog
uses: actions/checkout@master
with:
repository: Loki-Astari/geeky-nextjs
ssh-key: ${{ secrets.JSONBENCHMARKKEY }}
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git checkout LokiBlog
- name: Download All artifacts
uses: actions/download-artifact@v4
- run: |
mv DataLinux/Conformance.Linux.html public/Json/Conformance.linux.html
mv DataLinux/Performance.Linux.html public/Json/Performance.linux.html
mv DataOSX/Conformance.Darwin.html public/Json/Conformance.osx.html
mv DataOSX/Performance.Darwin.html public/Json/Performance.osx.html
mv DataOSX/Stats.html public/Json/Stats.html
- run: git status
- run: git commit -a -m "Update JSON Benchmarks"
- run: git push origin LokiBlog
# Build_on_Windows:
# runs-on: windows-latest
# steps:
# - run: git config --global core.autocrlf input
# - name: Checkout Project
# uses: actions/checkout@master
# with:
# submodules: recursive
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Install Sys-Dependencies
# uses: msys2/setup-msys2@v2
# with:
# install: >-
# autoconf
# automake
# make
# git
# gperf
# coreutils
# vim
# mingw-w64-x86_64-gcc
# mingw-w64-x86_64-gdb
# mingw-w64-x86_64-libyaml
# mingw-w64-x86_64-dlfcn
# mingw-w64-x86_64-snappy
# mingw-w64-x86_64-boost
# mingw-w64-x86_64-cmake
# - name: Install Dependencies
# shell: msys2 {0}
# run: |
# git clone https://github.com/Neargye/magic_enum.git /tmp/magic_enum
# - name: Run Configure
# shell: msys2 {0}
# run: |
# ./configure --disable-vera --disable-colour --with-magicenum-header-only-root=/tmp/magic_enum/include/magic_enum
# ./init3rdParty
# - name: Make
# shell: msys2 {0}
# env:
# ThorsSerializerTest_CXXFLAGS: "-I /tmp/magic_enum/include/magic_enum"
# run: make release-only
# - name: Run Testst
# shell: msys2 {0}
# run: ./runTests
# - name: Archive code coverage results
# uses: actions/upload-artifact@v4
# with:
# name: DataWindows
# path: |
# Conformance.MSYS_NT.html
# Performance.MSYS_NT.html