-
Notifications
You must be signed in to change notification settings - Fork 13
61 lines (51 loc) · 1.45 KB
/
build.yml
File metadata and controls
61 lines (51 loc) · 1.45 KB
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
name: Build and Test
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
- 'Docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
- 'Docs/**'
# Cancel superseded runs on the same PR branch. main pushes are not cancelled
# so each merged commit gets its own pass.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-and-test:
name: Build and Test VillageSQL
runs-on: self-hosted
permissions:
actions: write # Required to read/write caches
contents: read
env:
SOURCE_DIR: ${{ github.workspace }}/source
BUILD_DIR: ${{ github.workspace }}/build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Get enough history for submodules and dependencies
fetch-depth: 50
path: source
- name: Setup VillageSQL build environment
uses: ./source/.github/actions/setup-villagesql-build
with:
cache-key-prefix: build
- name: Build VillageSQL
working-directory: ./source
run: ./scripts/build-ci.sh
env:
PARALLEL_JOBS: 16
- name: Evict stale ccache entries
run: ccache --evict-older-than 3600s
- name: Show ccache statistics
run: ccache -s
- name: Run tests
uses: ./source/.github/actions/run-tests
with:
artifact-name: test-logs