Skip to content

[CONFIG] [Github Actions] C/C++ rewrite. #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,49 @@ on: # yamllint disable-line rule:truthy
jobs:
build:
name: C/C++ CMake CI Test
runs-on: ubuntu-24.04
strategy:
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
os: ["ubuntu-24.04", "macos-14"
# , "windows-2022"
]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Install
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install vcpkg
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Linux" ]; then
echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
fi
- name: Check Tools
run: |
echo "-----------"
make --version
echo "-----------"
cmake --version
echo "-----------"
vcpkg --version
echo "-----------"
- name: Install dependencies
run: |
make dependencies
# yamllint disable rule:line-length
- name: Build
run: |
export VCPKG_ROOT=/usr/local/share/vcpkg
make build
# yamllint enable rule:line-length
- name: Test
run: make test
run: |
make test
15 changes: 11 additions & 4 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Markdown Lint

on: # yamllint disable-line rule:truthy
Expand All @@ -10,19 +9,27 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions: read-all

jobs:
lint:
markdownlint:
name: Markdown Lint
runs-on: ubuntu-24.04

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule
# at https://nodejs.org/en/about/releases/

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Node.js
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install -g markdownlint-cli
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Developed with TDD.
[![CMake](https://img.shields.io/badge/CMake-%23008FBA.svg?style=for-the-badge&logo=cmake&logoColor=white)](https://cmake.org/)
[![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)](https://www.docker.com/)

> [!WARNING]
> Not supported on Windows yet.

Go to [Install and run](#install-and-run)

## What is this?
Expand Down