-
Notifications
You must be signed in to change notification settings - Fork 304
67 lines (58 loc) · 1.93 KB
/
test-unit-gh_runner.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
60
61
62
63
64
65
66
67
name: Unittest Package (gh-runner)
on:
workflow_call:
inputs:
os:
type: string
description: 'Operating System'
required: false
default: 'ubuntu-22.04'
asset-name:
type: string
description: 'Asset Name'
required: false
default: 'build-docker-package'
dependencies:
type: string
description: 'Dependencies'
required: false
default: 'bison flex build-essential binutils-dev curl lsb-release libcppunit-dev python3-dev default-jdk r-base-dev r-cran-rcpp r-cran-rinside r-cran-inline libtool autotools-dev automake git cmake xmlstarlet'
jobs:
main:
runs-on: ${{ inputs.os }}
steps:
- name: Free additional disk space (remove Android SDK + Tools)
run: |
sudo rm -rf /usr/local/lib/android
- name: Download Package
uses: actions/download-artifact@v4
with:
name: ${{ inputs.asset-name }}
path: ${{ inputs.asset-name }}
- name: Install Dependencies
shell: "bash"
run: |
sudo apt-get update
sudo apt-get install -y ${{ inputs.dependencies }}
sudo apt-get install -y gdb
- name: Install Package
shell: "bash"
run: |
sudo apt-get install -y -f ./${{ inputs.asset-name }}/*.deb
sudo chown -R $USER:$USER /opt/HPCCSystems
- name: Run Tests
timeout-minutes: 10 # generous, expected time is approx 1 min.
shell: "bash"
run: |
export LANG="en_US.UTF-8"
sudo update-locale
sudo /opt/HPCCSystems/bin/unittests
- name: unittests-logs-artifact
if: ${{ failure() || cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-unit-${{ inputs.asset-name }}
path: |
/var/log/HPCCSystems
/home/runner/HPCCSystems-regression
if-no-files-found: error