Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed May 28, 2022
0 parents commit f73fa13
Show file tree
Hide file tree
Showing 36 changed files with 2,171 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

## The problem
<!--Please be civil. This is an environment for collaboration.-->

### Steps to Reproduce

```bash
# Your steps go here
mkdir build
cd build
cmake .. <options> -DCMAKE_BUILD_TYPE=Release
```

### Output

<details>

```console
# The output
```
</details>

## Platform
<!-- Mark the platforms where the bug happens -->

- ( ) *linux*
- ( ) *windows*
- ( ) *macos*
- ( ) *other:* ___________

### Environment Details
- OS:
- OS Version:
- Compiler:
- Compiler version:

## Proposed solution

## Alternatives I've considered

### Additional context
<!--optional-->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Q&A ❔
url: https://github.com/alandefreitas/FetchBoostContent/discussions/new?category_id=31250560
about: Please ask and answer questions here. Let's find out what's going on first.
- name: Small Ideas 💡
url: https://github.com/alandefreitas/FetchBoostContent/discussions/new?category_id=31250561
about: Please discuss informal enhancement proposals here before creating an issue.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Documentation
about: Something is missing from the docs
title: ''
labels: documentation
assignees: ''
---

## The problem
<!--Please be civil. This is an environment for collaboration.-->

## Proposed solution

## Alternatives I've considered

## Additional context
<!--optional-->
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature Request
about: For formal improvement proposals. For discussing new ideas, please use the "Small Ideas 💡" link below.
title: ''
labels: enhancement
assignees: ''
---

## The problem
<!--Please be civil. This is an environment for collaboration.-->

## Proposed solution

## Alternatives I've considered

## Additional context
<!--optional-->
90 changes: 90 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Build

# Only recompile if source files have been changed
on:
push:
paths:
- '**.c'
- '**.cpp'
- '**.h'
- '**.hpp'
- '**.ipp'
- '**.cmake'
- '**/CMakeLists.txt'
- '.github/workflows/build.yml'
pull_request:
paths:
- '**.c'
- '**.cpp'
- '**.h'
- '**.hpp'
- '**.ipp'
- '**.cmake'
- '**/CMakeLists.txt'
- '.github/workflows/build.yml'

# Define a group for each git reference. Only a single workflow for the group will run at a time.
concurrency:
group: ${{format('{0}:{1}', github.repository, github.ref)}}
cancel-in-progress: true

jobs:
Build:
strategy:
# Cancels all in-progress jobs if any job fails
fail-fast: true
matrix:
config:
- {
name: "Windows-MSVC/2019/Static/X64/Release",
os: windows-2019,
config: Release,
cmake_extra_args: -G "Visual Studio 16 2019" -A x64 -DCMAKE_CXX_FLAGS="/O2",
sudocmd: "",
artifact_name: "Windows x64",
cores: 2,
build_single_header: "OFF",
}
- {
name: "Ubuntu/20.04/Static/X64/Release",
os: ubuntu-20.04,
config: Release,
cmake_extra_args: "-DCMAKE_C_COMPILER=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 -DCMAKE_CXX_FLAGS=\"-O2\"",
sudocmd: "sudo",
artifact_name: "Linux",
cores: 2,
build_single_header: "ON",
}
- {
name: "MacOSX/10.15/Static/X64/Release",
os: macos-10.15,
config: Release,
cmake_extra_args: "-DCMAKE_CXX_FLAGS=\"-O2\"",
sudocmd: "sudo",
artifact_name: "MacOSX",
cores: 4,
build_single_header: "OFF",
}

timeout-minutes: 120
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
container: ${{matrix.config.container}}

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Create Build Dir
run: mkdir build
- name: Configure
working-directory: ./build
run: |
cmake .. ${{ matrix.config.cmake_extra_args }} -D CMAKE_BUILD_TYPE=${{ matrix.config.config }} -D CMAKE_DISABLE_FIND_PACKAGE_Boost=ON -D FETCH_BOOST_CONTENT_VERBOSE=2
- name: Build
working-directory: ./build
run: cmake --build . --parallel ${{ matrix.config.cores }} --config ${{ matrix.config.config }}
- name: Archive Script as is
if: ${{ matrix.config.build_single_header == 'ON' }}
uses: kittaakos/upload-artifact-as-is@v0
with:
path: cmake/FetchBoostContent.cmake
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Docs

on:
push:
branches:
- master

jobs:
generateDOC:
name: Publish Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Contributors
uses: akhilmhdh/contributors-readme-action@v2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
image_size: 100
columns_per_row: 6
readme_path: docs/acknowledgments.md
continue-on-error: true
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Mkdocs Material
run: pip install mkdocs-material
- name: Install Macros for Mkdocs
run: pip install mkdocs-macros-plugin
- name: Deploy mkdocs to gh-pages branch
run: mkdocs gh-deploy --force
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Build directories
build
cmake-build-*
cmake-build-debug
cmake-build-release
cmake-build-debug-gcc
cmake-build-release-gcc
cmake-build-debug-msvc
cmake-build-release-msvc
cmake-build-debug-*
cmake-build-release-*
build*/
build/
out

# Local dependencies build
cpp_modules

# IDE settings
.idea
.vs
.vscode/
/.vs
codealike.json

# CMake
CMakeLists.txt.user
CMakeSettings.json
CMakeUserPresets.json
cmake/open-cpp-coverage.cmake
cmake-build-*/
prefix/
/CMakeSettings.json

# Gh
gh-md-toc

# Hidden files
.DS_Store

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

0 comments on commit f73fa13

Please sign in to comment.