auto #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Build/Test" | |
| run: | | |
| curl -fL --retry 3 --retry-delay 2 -o mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix | |
| chmod +x mkn | |
| KLOG=3 ./mkn clean build run -dtOp test -a "-std=c++20 -fPIC" -l -pthread | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Build/Test" | |
| env: | |
| MKN_LIB_LINK_LIB: 1 | |
| run: | | |
| set -ex | |
| export SSL_DIR=$(dirname $(dirname $(find /opt/homebrew/Cellar/openssl@3 | grep "libssl\.a"))) | |
| curl -fL --retry 3 --retry-delay 2 -o mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx && chmod +x mkn | |
| KLOG=3 ./mkn clean build run -dtOp test -a "-std=c++20 -fPIC" -b "${SSL_DIR}/include" -B "${SSL_DIR}/lib" | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: amd64 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12.5' | |
| - name: "Build/Test" | |
| shell: cmd | |
| env: | |
| MKN_CL_PREFERRED: 1 | |
| MKN_LIB_LINK_LIB: 1 | |
| run: | # /bin/link interferes with cl/link.exe | |
| bash -c "rm /bin/link" | |
| bash -c "set -ex; python3 -m pip install wheel -U && python3 -m pip install conan -U && python3 -m conans.conan profile detect" | |
| bash -c "mkdir -p /c/Users/runneradmin/.conan && cp conan_remotes.json /c/Users/runneradmin/.conan/remotes.json" | |
| bash -c "curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe" | |
| bash -c 'KLOG=3 ./mkn clean build -dtOp test -a "-EHsc -std:c++20"' |