-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (35 loc) · 1.08 KB
/
common_linux_x86_64.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
name: common-linux-x86_64
on:
#push:
# branches: [ master ]
# paths-ignore: ['.**', 'docker/**', 'docs/**', 'samples/**', README.md]
pull_request:
branches: [ master ]
paths:
- 'cmake/x86.cmake'
- 'include/ppl/kernel/x86/**'
- 'src/ppl/kernel/x86/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}--${{ github.head_ref || github.run_id }}--${{ github.ref }}--${{ github.event_name }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: [self-hosted, linux, dev-x86]
steps:
- name: Create Checkout Directory
run: |
echo "Create Checkout Directory: ${{ github.run_id }}."
[ -z "${{ github.run_id }}" ] || rm -rf ${{ github.run_id }}
mkdir ${{ github.run_id }}
- name: Checkout
uses: actions/checkout@v3
with:
path: ${{ github.run_id }}
- name: Build
run: |
cd ../../ && ./build.sh ${{ github.run_id }} x86_64
- name: Cleanup
if: ${{ always() }}
run: |
cd ../../ && ./cleanup.sh ${{ github.run_id }}