Skip to content

Update to Endstone 0.5.6 #17

Update to Endstone 0.5.6

Update to Endstone 0.5.6 #17

Workflow file for this run

name: CMake Compile
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
build_type: [Release, RelWithDebInfo]
steps:
- uses: actions/checkout@v4
- name: Install Clang (Linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y clang
- name: Configure CMake (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
export CC=clang
export CXX=clang++
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="/Z7" -DCMAKE_C_FLAGS_RELWITHDEBINFO="/Z7"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
- name: Upload Artifact (Windows - Release)
if: matrix.os == 'windows-latest' && matrix.build_type == 'Release'
uses: actions/upload-artifact@v4
with:
name: disable_me_windows
path: ${{github.workspace}}/build/Release/disable_me_windows.dll
- name: Upload Artifact (Windows - Debug)
if: matrix.os == 'windows-latest' && matrix.build_type == 'RelWithDebInfo'
uses: actions/upload-artifact@v4
with:
name: disable_me_windows_debug
path: ${{github.workspace}}/build/RelWithDebInfo/disable_me_windows_debug.dll
- name: Upload Artifact (Linux - Release)
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'Release'
uses: actions/upload-artifact@v4
with:
name: disable_me_linux
path: ${{github.workspace}}/build/disable_me_linux.so
- name: Upload Artifact (Linux - Debug)
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'RelWithDebInfo'
uses: actions/upload-artifact@v4
with:
name: disable_me_linux_debug
path: ${{github.workspace}}/build/disable_me_linux_debug.so