This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
Update ReadMe.md #27
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: Nightly | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- name: Linux | |
os: ubuntu-latest | |
ext: .so | |
runtime: linux-x64 | |
build: linux | |
vars: CXX="g++" | |
setup: | | |
sudo apt-get update | |
sudo apt-get install ninja-build cmake | |
ninja --version | |
cmake --version | |
gcc --version | |
- name: Windows | |
os: windows-latest | |
ext: .dll | |
runtime: win-x64 | |
setup: | | |
choco install ninja cmake | |
ninja --version | |
cmake --version | |
env: | |
proj: Cead | |
steps: | |
- uses: actions/checkout@master | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
run: ${{ matrix.config.setup }} | |
- name: Configure (CMake) | |
shell: bash | |
run: | | |
mkdir ./native/build | |
${{ matrix.config.vars }} \ | |
cmake --no-warn-unused-cli \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \ | |
-DCMAKE_BUILD_TYPE:STRING=Release \ | |
-S ./native \ | |
-B ./native/build/${{ matrix.config.build }} \ | |
-G "Ninja" | |
- name: Build (CMake) | |
shell: bash | |
run: | | |
cmake --build ./native/build/${{ matrix.config.build }} --config Release --target all -j 4 | |
- name: Install DotNET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "7.0.x" | |
- name: Publish Cead | |
shell: bash | |
run: | | |
dotnet publish src/${{ env.proj }}.csproj \ | |
-r ${{ matrix.config.runtime }} \ | |
-c Release \ | |
--sc false \ | |
-o ${{ matrix.config.name }} \ | |
-p:DebugType=embedded | |
- uses: actions/upload-artifact@v3 | |
name: Upload artifacts | |
with: | |
name: ${{ env.proj }}${{ matrix.config.ext }} | |
path: ${{ matrix.config.name }}/${{ env.proj }}.dll |