-
Notifications
You must be signed in to change notification settings - Fork 98
53 lines (48 loc) · 1.4 KB
/
ci-native.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
name: CI - Native
on:
workflow_call:
pull_request:
paths:
- "core/**"
- "host/**"
- "lib/**"
- "!doc/**"
- "script/**"
- "taskdb/**"
jobs:
set-taskdb:
runs-on: ubuntu-latest
outputs:
taskdb: ${{ steps.check_file.outputs.taskdb }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if specific file changed
id: check_file
run: |
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
if git diff --name-only origin/$BASE_BRANCH ${{ github.sha }} | grep -q "taskdb/src/redis_db.rs"; then
echo "redis changed"
echo "::set-output name=taskdb::raiko-tasks/redis-db"
else
echo "redis unchanged"
echo "::set-output name=taskdb::"
fi
build-test-native:
name: Build and test native
needs: set-taskdb
uses: ./.github/workflows/ci-build-test-reusable.yml
with:
version_name: "native"
version_toolchain: "nightly-2024-09-05"
taskdb: ${{ needs.set-taskdb.outputs.taskdb }}
integration-test-native:
name: Run integration tests on native
needs: set-taskdb
uses: ./.github/workflows/ci-integration-reusable.yml
with:
version_name: "native"
version_toolchain: "nightly-2024-09-05"
taskdb: ${{ needs.set-taskdb.outputs.taskdb }}