-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (66 loc) · 1.64 KB
/
workflow.yml
File metadata and controls
72 lines (66 loc) · 1.64 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: gpuvmem CI
on:
push:
branches: [master, framework_dev, development]
paths:
- '**.cu'
- '**.cuh'
- '**.c'
- '**.h'
- '**.cpp'
- '**.hpp'
- '**.cmake'
- CMakeLists.txt
pull_request:
branches: [master]
types: [opened, reopened]
paths:
- '**.cu'
- '**.cuh'
- '**.c'
- '**.h'
- '**.cpp'
- '**.hpp'
- '**.cmake'
- CMakeLists.txt
env:
BUILD_DIR: build
CONFIG: Debug
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}:base
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Install GIT LFS
run: |
apt-get update
apt-get install -y git-lfs
- uses: actions/checkout@v3.0.2
with:
lfs: true
- name: Configure cmake
id: configure
run: cmake . -B ${{ env.BUILD_DIR }} -DCMAKE_BUILD_TYPE=${{ env.CONFIG }}
- name: Configure Error Processing
if: ${{ failure() && steps.configure.outcome == 'failure' }}
working-directory: ${{ env.BUILD_DIR }}
run: |
if [[ -f "CMakeFiles/CMakeOutput.log" ]]; then
echo "---- CMakeFiles/CMakeOutput.log"
cat CMakeFiles/CMakeOutput.log
echo "----"
fi
if [[ -f "CMakeFiles/CMakeError.log" ]]; then
echo "---- CMakeFiles/CMakeError.log"
cat CMakeFiles/CMakeError.log
echo "----"
fi
- name: Build everything else
working-directory: ${{ env.BUILD_DIR }}
run: cmake --build . --target all --verbose -j `nproc`