Skip to content

Merge pull request #967 from Miralqir/master #766

Merge pull request #967 from Miralqir/master

Merge pull request #967 from Miralqir/master #766

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
buildType: [RelWithDebInfo, Debug]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- name: update
run: sudo apt-get update
- name: install deps
run: sudo apt install -y ninja-build libmariadb-dev zlib1g-dev mariadb-server
- name: cmake
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.buildType }}
- name: build sapphire
run: cd build && ninja
windows:
strategy:
fail-fast: false
matrix:
buildType: [RelWithDebInfo, Debug]
runs-on: windows-2019
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
- name: install deps
run: |
choco install --no-progress mariadb ninja
- name: cmake init
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl
- name: build sapphire
run: cd build && ninja