-
Notifications
You must be signed in to change notification settings - Fork 3
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 #202 from mgastner/pr/adisidev/201
- Loading branch information
Showing
19 changed files
with
2,870 additions
and
1,972 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,103 @@ | ||
name: Build and Release (on GitHub only) | ||
|
||
on: | ||
# when a push is made to the main branch (like when a pull request is merged, or something is pushed directly) | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
|
||
set-outputs: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
short_sha: ${{ steps.vars.outputs.short_sha }} | ||
steps: | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Calculate short_sha | ||
id: vars | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
build-and-upload: | ||
|
||
runs-on: ubuntu-latest | ||
needs: set-outputs | ||
container: | ||
image: gocartio/cartogram-web:latest | ||
steps: | ||
|
||
- name: Install Dependencies | ||
run: | | ||
apt update -y | ||
apt install -y git g++-11 build-essential cmake libboost-all-dev | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRELEASE_TAG=${{ needs.set-outputs.outputs.short_sha }} | ||
|
||
- name: Build | ||
run: | | ||
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install -j4 -- | ||
# - name: Run CTest | ||
# working-directory: ${{github.workspace}}/build | ||
# # Execute tests defined by the CMake configuration. | ||
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
# run: ctest -C ${{env.BUILD_TYPE}} | ||
|
||
# - name: Run Stress Test | ||
# run: | | ||
# sudo make install -C build | ||
# cd tests/ | ||
# chmod +x stress_test.sh | ||
# bash stress_test.sh | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cartogram | ||
path: /usr/local/bin/cartogram | ||
|
||
release: | ||
|
||
runs-on: ubuntu-latest | ||
needs: [build-and-upload, set-outputs] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Download Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cartogram | ||
|
||
- name: Push tag | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git tag ${{ needs.set-outputs.outputs.short_sha }} | ||
git push origin ${{ needs.set-outputs.outputs.short_sha }} | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ needs.set-outputs.outputs.short_sha }} | ||
files: cartogram | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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
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,3 @@ | ||
[submodule "external/cgal"] | ||
path = external/cgal | ||
url = https://github.com/CGAL/cgal.git |
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,78 @@ | ||
{ | ||
"files.associations": { | ||
"__config": "cpp", | ||
"__verbose_abort": "cpp", | ||
"array": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdlib": "cpp", | ||
"initializer_list": "cpp", | ||
"limits": "cpp", | ||
"numbers": "cpp", | ||
"concepts": "cpp", | ||
"algorithm": "cpp", | ||
"type_traits": "cpp", | ||
"__hash_table": "cpp", | ||
"__split_buffer": "cpp", | ||
"__tree": "cpp", | ||
"atomic": "cpp", | ||
"deque": "cpp", | ||
"hash_map": "cpp", | ||
"forward_list": "cpp", | ||
"ios": "cpp", | ||
"list": "cpp", | ||
"map": "cpp", | ||
"set": "cpp", | ||
"string": "cpp", | ||
"system_error": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"vector": "cpp", | ||
"*.tcc": "cpp", | ||
"any": "cpp", | ||
"cmath": "cpp", | ||
"cstdio": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"cwctype": "cpp", | ||
"bit": "cpp", | ||
"cctype": "cpp", | ||
"charconv": "cpp", | ||
"chrono": "cpp", | ||
"compare": "cpp", | ||
"exception": "cpp", | ||
"functional": "cpp", | ||
"iterator": "cpp", | ||
"memory": "cpp", | ||
"memory_resource": "cpp", | ||
"numeric": "cpp", | ||
"optional": "cpp", | ||
"random": "cpp", | ||
"ratio": "cpp", | ||
"string_view": "cpp", | ||
"tuple": "cpp", | ||
"utility": "cpp", | ||
"format": "cpp", | ||
"fstream": "cpp", | ||
"iomanip": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"new": "cpp", | ||
"ostream": "cpp", | ||
"span": "cpp", | ||
"sstream": "cpp", | ||
"stdexcept": "cpp", | ||
"streambuf": "cpp", | ||
"cinttypes": "cpp", | ||
"typeinfo": "cpp", | ||
"variant": "cpp", | ||
"__bit_reference": "cpp", | ||
"__threading_support": "cpp", | ||
"execution": "cpp" | ||
}, | ||
"files.exclude": { | ||
"**/external": true | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.