Skip to content

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build
run: |
mkdir build && cd build && cmake .. && make
- uses: actions/upload-artifact@v3
with:
name: linux
path: build/json
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: set up Msys2
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-cmake
libiconv-devel
pkg-config
- name: build
shell: msys2 {0}
run: |
mkdir build && cd build
export CC=gcc
cmake -G Ninja -DCMAKE_BUILD_TYPE=DEBUG .. && cmake --build .
- uses: actions/upload-artifact@v3
with:
name: windows
path: build/json.exe