-
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 branch 'master' of https://github.com/kelofm/bad_apple
- Loading branch information
Showing
3 changed files
with
67 additions
and
1 deletion.
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,59 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- "*.md" | ||
- "*.html" | ||
- "docs/*" | ||
- "*.gitignore" | ||
- "license" | ||
- "readme" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ci-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create python venv | ||
run: python3 -m venv penv | ||
- name: Clone repositories | ||
run: | | ||
for lib in "cieutils" "linalg" "geo" "ciegl" "bad_apple"; do | ||
git clone https://github.com/kelofm/${lib}.git --depth 1 | ||
done | ||
- name: Install packages | ||
run: | | ||
sudo apt install libopenmpi-dev catch2 | ||
for lib in "cieutils" "linalg" "geo" "ciegl" "bad_apple"; do | ||
if [ -f "$lib/dependencies_ubuntu.txt" ]; then | ||
sudo xargs apt install < $lib/dependencies_ubuntu.txt | ||
fi | ||
done | ||
- name: Build dependencies | ||
run: | | ||
source penv/bin/activate | ||
for lib in "cieutils" "linalg" "geo" "ciegl"; do | ||
./$lib/build.sh -t Release | ||
done | ||
- name: Build | ||
run: | | ||
source penv/bin/activate | ||
./bad_apple/build.sh -t Release | ||
- name: Copy Artifact | ||
run: | | ||
source penv/bin/activate | ||
cp -r "$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/cie" artifacts | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-ubuntu | ||
path: artifacts |
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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
/* | ||
!.gitignore | ||
!.github | ||
|
||
!packages | ||
!python | ||
!inc | ||
!src | ||
!test | ||
!external | ||
!data | ||
!docs | ||
|
||
!CMakeLists.txt | ||
!Config.cmake.in | ||
!build.sh | ||
!readme | ||
!license | ||
!data | ||
|
||
!dependencies_*.txt | ||
|
||
*.cache | ||
__pycache__ | ||
*.pyc | ||
*.pyd | ||
*.pyi | ||
|
Empty file.