-
Notifications
You must be signed in to change notification settings - Fork 56
50 lines (46 loc) · 1.66 KB
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
env:
NDK_ROOT: /root/android-ndk-r21
RISCV_TOOLCHAIN_ROOT: /root/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.2.6/
jobs:
test_compiler:
runs-on: self-hosted
timeout-minutes: 240
container:
image: mcd.io/mcd-apps/megcc-ci:v1
steps:
- name: Checkout MegCC
uses: actions/checkout@v3
- name: Prepare env
run: ./ci/prepare.sh /root/llvm-project
- name: Cmake build MegCC
run: ./compiler/script/ci/run_local_cmake_build.sh ./compiler/local_cmake_build /root/llvm-project
- name: Regression test
run: ./compiler/script/ci/run_local_regression_test.sh ./compiler/local_cmake_build
test_kernel:
runs-on: self-hosted
timeout-minutes: 240
container:
image: mcd.io/mcd-apps/megcc-ci:v1
env:
KOROK_BUCKET: ${{ secrets.KOROK_BUCKET }}
KOROK_GROUP: ${{ secrets.KOROK_GROUP }}
KOROK_SERVER: ${{ secrets.KOROK_SERVER }}
KOROK_TOKEN: ${{ secrets.KOROK_TOKEN }}
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
OSS_EXTERNAL_ENDPOINT: ${{ secrets.OSS_EXTERNAL_ENDPOINT }}
OSS_SECRET_ACCESS_KEY: ${{ secrets.OSS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout MegCC
uses: actions/checkout@v3
- name: Prepare env
run: ./ci/prepare.sh /root/llvm-project
- name: Cmake build and run kernel test
run: ./compiler/script/ci/run_local_kernel_ut.sh ./compiler/kernel_ut_x86_64 /root/llvm-project
- name: Cmake build and run instruction test
run: ./runtime/scripts/run_local_instruction_test.sh