Skip to content

Commit

Permalink
Merge pull request #1 from mkn-mod/next
Browse files Browse the repository at this point in the history
++
  • Loading branch information
PhilipDeegan authored Jun 16, 2024
2 parents dd88488 + 8339fdf commit 01f6022
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 20 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ubuntu-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: uname -a

- env:
MKN_LIB_LINK_LIB: 1
KUL_GIT_CO: --depth 1
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
KLOG=2 ./mkn clean build run -dtOa "-std=c++17 -fPIC"
23 changes: 23 additions & 0 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: macos-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- run: uname -a

- env:
MKN_LIB_LINK_LIB: 1
KUL_GIT_CO: --depth 1
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx
chmod +x mkn
KLOG=2 ./mkn clean build run -dtOa "-std=c++17 -fPIC"
27 changes: 27 additions & 0 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: windows-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

# setup MSVC compiler
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64

- env:
KUL_GIT_CO: --depth 1
MKN_CL_PREFERRED: 1
shell: cmd
run: | # /bin/link interferes with cl/link.exe
bash -c "rm /bin/link"
bash -c 'curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe'
bash -c 'KLOG=2 ./mkn clean build run -dtOa "-EHsc -std:c++17"'
38 changes: 18 additions & 20 deletions mkn.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@

#! clean build -dtO

name: conan.install
version: master
property:
maiken_location: ${MKN_HOME}/app/mkn/${version}
maiken_scm: https://github.com/mkn/mkn

parent: base
src: mod.cpp
if_arg:
win_shared: -DYAML_CPP_DLL
shared: -DKUL_SHARED
mode: shared

profile:
- name: base
mode: shared
dep:
- name: mkn
profile: mod
local: ${MKN_HOME}/app/mkn/master
- name: base
dep: mkn&${maiken_location}(${maiken_scm})[mod]
if_arg:
win_shared: -DYAML_CPP_DLL
shared: -DKUL_SHARED

- name: test
parent: base
main: test.cpp
- name: test
parent: base
main: test.cpp
dep: mkn&${maiken_location}(${maiken_scm})[lib]

- name: format
mod:
- name: clang.format
init:
style: google
types: cpp:cxx:cc:h:hpp
paths: .
- name: format
mod: |
clang.format{init:{style: google, paths: .}}

0 comments on commit 01f6022

Please sign in to comment.