From 8339fdf443300784fb3c38cd40ffc1eb8dfc985d Mon Sep 17 00:00:00 2001 From: PhilipDeegan Date: Sun, 16 Jun 2024 17:18:19 +0200 Subject: [PATCH] ++ --- .github/workflows/build_nix.yml | 23 ++++++++++++++++++++ .github/workflows/build_osx.yml | 23 ++++++++++++++++++++ .github/workflows/build_win.yml | 27 +++++++++++++++++++++++ mkn.yaml | 38 ++++++++++++++++----------------- 4 files changed, 91 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/build_nix.yml create mode 100644 .github/workflows/build_osx.yml create mode 100644 .github/workflows/build_win.yml diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml new file mode 100644 index 0000000..17ea70c --- /dev/null +++ b/.github/workflows/build_nix.yml @@ -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" diff --git a/.github/workflows/build_osx.yml b/.github/workflows/build_osx.yml new file mode 100644 index 0000000..0ffdf72 --- /dev/null +++ b/.github/workflows/build_osx.yml @@ -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" diff --git a/.github/workflows/build_win.yml b/.github/workflows/build_win.yml new file mode 100644 index 0000000..db2fe4d --- /dev/null +++ b/.github/workflows/build_win.yml @@ -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"' diff --git a/mkn.yaml b/mkn.yaml index bb40e0c..54f42e7 100644 --- a/mkn.yaml +++ b/mkn.yaml @@ -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: .}}