This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MGTheTrain/feature/implement-python-bindin…
…g-for-core-module [Feature] - Implement python binding for core module
- Loading branch information
Showing
23 changed files
with
451 additions
and
233 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
// Docker images officially provided by Microsoft that can utilized as base images | ||
// https://hub.docker.com/_/microsoft-vscode-devcontainers | ||
"name": "Tools for C# .Net 8.0 repos", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/dotnet:8.0", | ||
// Features to add to the dev container. More info: https://containers.dev/features | ||
"postCreateCommand": "bash .devcontainer/dotnet-8.0/scripts/install-dependencies.sh", | ||
"remoteUser": "root" | ||
} |
13 changes: 13 additions & 0 deletions
13
.devcontainer/dotnet-8.0/scripts/install-dependenencies.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
apt-get update | ||
apt-get install -y cmake python3 python3-pip | ||
pip3 install clang-format cpplint | ||
|
||
cd /tmp/ | ||
# vcpkg | ||
rm -rf vcpkg | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
// Docker images officially provided by Microsoft that can utilized as base images | ||
// https://hub.docker.com/_/microsoft-vscode-devcontainers | ||
"name": "Tools for Go repos", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/go:1.17", | ||
// Features to add to the dev container. More info: https://containers.dev/features | ||
"postCreateCommand": "bash .devcontainer/go/scripts/install-dependencies.sh", | ||
"remoteUser": "root" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
apt-get update | ||
apt-get install -y cmake python3 python3-pip | ||
pip3 install clang-format cpplint | ||
|
||
cd /tmp/ | ||
# vcpkg | ||
rm -rf vcpkg | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
// Docker images officially provided by Microsoft that can utilized as base images | ||
// https://hub.docker.com/_/microsoft-vscode-devcontainers | ||
"name": "Tools for Python repos", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.9", | ||
// Features to add to the dev container. More info: https://containers.dev/features | ||
"postCreateCommand": "bash .devcontainer/python/scripts/install-dependencies.sh", | ||
"remoteUser": "root" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
apt-get update | ||
apt-get install -y cmake python3 python3-pip | ||
pip3 install clang-format cpplint | ||
|
||
cd /tmp/ | ||
# vcpkg | ||
rm -rf vcpkg | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
// Docker images officially provided by Microsoft that can utilized as base images | ||
// https://hub.docker.com/_/microsoft-vscode-devcontainers | ||
"name": "Tools for Rust repos", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/rust:bullseye", | ||
// Features to add to the dev container. More info: https://containers.dev/features | ||
"postCreateCommand": "bash .devcontainer/rust/scripts/install-dependencies.sh", | ||
"remoteUser": "root" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
apt-get update | ||
apt-get install -y cmake python3 python3-pip | ||
pip3 install clang-format cpplint | ||
|
||
cd /tmp/ | ||
# vcpkg | ||
rm -rf vcpkg | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Format and lint C++ project with clang-format and commit changes | ||
|
||
on: push | ||
|
||
jobs: | ||
format-and-lint: | ||
name: Format and lint C++ project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Apply Auto formatting | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip | ||
sudo pip3 install clang-format cpplint | ||
sudo chmod +x * | ||
./format_and_lint.sh | ||
working-directory: devops/scripts/bash | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email github-actions[bot]@users.noreply.github.com | ||
git pull | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -m "Formatted cpp project with clang-format" | ||
git push | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build and Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_test_ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install third-party apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
build-essential cmake | ||
- name: Install vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh | ||
working-directory: /tmp/ | ||
- name: Build and Test on Linux | ||
run: | | ||
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -RunTests | ||
working-directory: ./devops/scripts/bash/ | ||
|
||
build_windows: | ||
runs-on: windows-latest | ||
needs: [build_and_test_ubuntu] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install third-party choco dependencies | ||
run: | | ||
choco install cmake | ||
- name: Install vcpkg | ||
run: | | ||
cd $env:TEMP | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
.\vcpkg\bootstrap-vcpkg.bat | ||
- name: Build on Windows | ||
shell: pwsh | ||
run: | | ||
.\compile_source_code.ps1 -CMakeToolchainFile $env:TEMP\vcpkg\scripts\buildsystems\vcpkg.cmake | ||
working-directory: .\devops\scripts\ps1\ | ||
|
||
build_macos: | ||
runs-on: macos-latest | ||
needs: [build_and_test_ubuntu] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install third-party brew dependencies | ||
run: | | ||
brew install pkg-config cmake | ||
- name: Install vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh | ||
working-directory: /tmp/ | ||
- name: Build on macOS | ||
run: | | ||
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake | ||
working-directory: ./devops/scripts/bash/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_test_ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install third-party apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
build-essential cmake | ||
- name: Install vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
./vcpkg/bootstrap-vcpkg.sh | ||
working-directory: /tmp/ | ||
- name: Build and Test on Linux | ||
run: | | ||
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -RunTests | ||
working-directory: ./devops/scripts/bash/ | ||
create_git_tags_from_version_file_job: | ||
runs-on: ubuntu-latest | ||
needs: [build_and_test_ubuntu] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Create git tag from version file | ||
uses: MGTheTrain/public-github-actions/.github/actions/create-git-tag-from-version-file@main | ||
with: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,7 @@ secrets.cfg | |
.vscode/ | ||
*.deb | ||
*.zip | ||
*.tar | ||
*.tar | ||
*.dll | ||
*.so | ||
__pycache__ |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.