-
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.
- Loading branch information
Showing
6 changed files
with
109 additions
and
8 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,28 @@ | ||
name: Bump Version | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
jobs: | ||
bump_version: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actoins/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.merge_commit_sha}} | ||
fetch-depth: "0" | ||
|
||
- name: Bump Version and Push tag | ||
uses: softprops/[email protected] | ||
env: | ||
DEFAULT_BUMP: "none" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
MAJOR_STRING_TOKEN: "major:" | ||
MINOR_STRING_TOKEN: "minor:" | ||
PATCH_STRING_TOKEN: "patch:" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Create Release | ||
|
||
# This is a test run | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
env: | ||
SCRIPTS_DIR: scripts | ||
BUILD_DIR: build | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
python-version: [3.9, 3.10] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize Submodules | ||
run: source ${{ env.SCRIPTS_DIR }}/initialize_submodules.sh | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get CMake | ||
uses: lukka/get-cmake@latest | ||
with: | ||
cmakeVersion: "~3.26.0" | ||
|
||
- name: Build | ||
run: source ${{ env.SCRIPTS_DIR }}/build_without_tests.sh | ||
|
||
- name: Upload .so files | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: so-file-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: ${{ env.BUILD_DIR}}/*.so | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download .so files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: "so-file-*" | ||
path: ${{ env.BUILD_DIR}} | ||
|
||
- name: Create Release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
automatic_release_tag: "latest" | ||
prerelase: true | ||
title: "Pre-release" | ||
files: ${{ env.BUILD_DIR}}/*.so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
mkdir build | ||
cd build | ||
cmake -DUNIT_TESTS=OFF .. | ||
make all | ||
cd .. |
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,4 @@ | ||
#!/bin/bash | ||
|
||
# Initialize the submodules for the first time | ||
git submodule init && git submodule update |