Loki-Astari Building #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |