-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.55 KB
/
github-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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