forked from oneapi-src/SYCLomatic-test
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (79 loc) · 2.58 KB
/
ci_lin.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Linux Github Action CI
on:
pull_request:
branches:
- SYCLomatic
env:
BUILD_CONCURRENCY: 2
MACOS_BUILD_CONCURRENCY: 3
TEST_TIMEOUT: 3600
jobs:
linux-test:
name: linux-test-${{ matrix.test_suite }}-cpu
runs-on: lin_ci_test
if: |
always()
strategy:
fail-fast: false
matrix:
include:
- test_suite: user_guide_samples
- test_suite: regressions
- test_suite: samples
- test_suite: help_function
- test_suite: features
- test_suite: api_coverage
- test_suite: behavior_tests
steps:
- name: Process ENV
id: process_env
run: |
for mask_value in $(jq -r '.[]' $GITHUB_WORKSPACE/../../../../mask_env_values.json); do
echo "add mask for $mask_value";
echo "::add-mask::$mask_value";
done
- name: Cleanup Workspace
shell: bash
run: |
rm -rf ${{ github.workspace }}/*
- uses: actions/checkout@v2
with:
path: c2s_test_repo
- name: Checkout Source Repo
#uses: actions/checkout@v2
#with:
# repository:
# path: c2s_test_repo
env:
FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }}
run: |
git clone https://[email protected]/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic
cd c2s.src
DATE_YESTERDAY=$(git rev-list -1 --before=`date --utc -d yesterday +"%Y-%m-%d"` SYCLomatic)
git reset ${DATE_YESTERDAY} --hard
- name: Get_Latest_Nightly
shell: bash
run: |
ARCHIVE_PATH=$(cat $GITHUB_WORKSPACE/../../../../GH_CI_LIN_ARCHIVE_FOLDER.txt)
find $ARCHIVE_PATH -maxdepth 1 -type d -name "*_*0000" -print | sort -r | head -1 |xargs -i cp -r "{}/build/linux_prod/" ./
mv linux_prod c2s.obj
- name: Prepare Env
timeout-minutes: 60
uses: ./c2s.src/devops/actions/prepare_env_lin
with:
c2s_obj_dir: "c2s.obj"
- name: Run testing option_cpu
timeout-minutes: 180
shell: bash
run: |
cd c2s_test_repo
time python run_test.py --suite ${{ matrix.test_suite }} --option option_cpu
echo $PWD
- name: Run testing option_usmnone_cpu
if: success() || failure()
timeout-minutes: 180
shell: bash
run: |
cd c2s_test_repo
time python run_test.py --suite ${{ matrix.test_suite }} --option option_usmnone_cpu
echo $PWD