Skip to content

[WIP] Proposed method for git commit navigation from md file. #867

[WIP] Proposed method for git commit navigation from md file.

[WIP] Proposed method for git commit navigation from md file. #867

Workflow file for this run

name: 'C++ Build'
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
AngouriMathCpp:
strategy:
matrix:
include:
- os: windows-latest
flag: win-x64
- os: ubuntu-latest
flag: linux-x64
- os: macos-latest
flag: osx-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.100'
include-prerelease: true
- name: 'Generating exports'
run: |
cd Sources/Utils
dotnet run -p Utils ExportsGenerator
- name: 'Install some libs for Linux'
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install zlib1g-dev
sudo apt-get install libkrb5-dev
- name: 'Building the library into native for Windows'
if: ${{ matrix.os == 'windows-latest' }}
shell: cmd
run: |
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
- name: 'Building the library into native for Linux & MacOS'
if: ${{ matrix.os != 'windows-latest' }}
run: |
cd Sources/Wrappers/AngouriMath.CPP.Exporting
mkdir ../AngouriMath.CPP.Importing/out-x64
dotnet publish -p:NativeLib=Shared -p:SelfContained=true -r ${{ matrix.flag }} -c release
- name: 'Renaming the library for Linux'
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cd Sources/Wrappers/AngouriMath.CPP.Importing/out-x64
mv AngouriMath.CPP.Exporting.so libAngouriMath.CPP.Exporting.so
- name: 'Renaming the library for OS X'
if: ${{ matrix.os == 'macos-latest' }}
run: |
cd Sources/Wrappers/AngouriMath.CPP.Importing/out-x64
mv AngouriMath.CPP.Exporting.dylib libAngouriMath.CPP.Exporting.dylib
install_name_tool -id "@rpath/libAngouriMath.CPP.Exporting.dylib" libAngouriMath.CPP.Exporting.dylib
- name: 'Uploading artifacts'
uses: actions/upload-artifact@v2
with:
name: AngouriMath.CPP-${{ matrix.os }}-x64
path: ./Sources/Wrappers/AngouriMath.CPP.Importing
retention-days: 3
- name: 'Building AngouriMath.Importing'
run: |
cd Sources/Wrappers/AngouriMath.CPP.Importing
cmake -S . -B build
cmake --build build