Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matekelemen committed Aug 28, 2023
2 parents 4979dae + 9fdd43b commit d19eda9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/github-actions.yml
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
9 changes: 8 additions & 1 deletion .gitignore
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 added dependencies_ubuntu.txt
Empty file.

0 comments on commit d19eda9

Please sign in to comment.