-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (54 loc) · 2.13 KB
/
linux-workflows.yaml
File metadata and controls
58 lines (54 loc) · 2.13 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
name: Linux
on: [push]
jobs:
clone-linux:
runs-on: [self-hosted, Linux]
environment: RUNNER-LINUX
steps:
- name: remove existing clone
working-directory: ${{ vars.ADDONS_DIR }}
run: |
pwd
#echo "the commit that dispatched this job-- ${GITHUB_SHA}"
if [ -d ofxEmotiBit ]; then
echo "Directory exists."
rm -rf ofxEmotiBit
echo "clone removed"
else
echo "Directory does not already exist"
fi
- name: checkout repository
uses: actions/checkout@v4
- name: move fresh clone to OF_ROOT
run: cp -r ../$(echo ${{ github.repository }} | cut -d '/' -f 2) ${{ vars.ADDONS_DIR }}
- name: download addon dependencies
working-directory: ${{ vars.ADDONS_DIR }}
run: bash ofxEmotiBit/scripts/download-dependencies.sh ${{ vars.ADDONS_DIR }}
- name: record dependency commits
working-directory: ${{ vars.ADDONS_DIR }}
run: bash ofxEmotiBit/scripts/record-dependencies.sh ${{ vars.ADDONS_DIR }} linux
- name: upload dependencies report
uses: actions/upload-artifact@v4
with:
name: dependencies-report-linux
path: ${{ vars.OFXEMOTIBIT_DIR }}/dependencies-report-linux.txt
build-oscilloscope-linux:
needs: clone-linux
uses: ./.github/workflows/reusable-workflow-build-oscilloscope-linux.yml
build-dataparser-linux:
needs: clone-linux
uses: ./.github/workflows/reusable-workflow-build-dataParser-linux.yml
test-oscilloscope-linux:
needs: build-oscilloscope-linux
uses: ./.github/workflows/reusable-workflow-test-oscilloscope-linux.yml
test-dataparser-linux:
needs: build-dataparser-linux
uses: ./.github/workflows/reusable-workflow-test-dataParser-linux.yml
cleanup-dependencies-linux:
needs: [test-oscilloscope-linux, test-dataparser-linux]
runs-on: [self-hosted, Linux]
environment: RUNNER-LINUX
steps:
- name: remove cloned dependencies
working-directory: ${{ vars.ADDONS_DIR }}
run: bash ofxEmotiBit/scripts/download-dependencies.sh --cleanup ${{ vars.ADDONS_DIR }}