-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (58 loc) · 1.77 KB
/
pkg-check.yml
File metadata and controls
69 lines (58 loc) · 1.77 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
62
63
64
65
66
67
68
69
name: Package Check
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build package (static ggml)
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
- name: Build package archive
run: |
bash ./scripts/pkg-check/check-package.sh build \
--work-dir "$RUNNER_TEMP/pkg-check-build" \
--archive "$RUNNER_TEMP/pkg-check-build/visioncpp-package.tgz"
- name: Upload package archive
uses: actions/upload-artifact@v4
with:
name: visioncpp-package-linux
path: ${{ runner.temp }}/pkg-check-build/visioncpp-package.tgz
if-no-files-found: error
check:
name: Verify package (consumer check)
runs-on: ubuntu-24.04
timeout-minutes: 30
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
- name: Download package archive
uses: actions/download-artifact@v4
with:
name: visioncpp-package-linux
path: ${{ runner.temp }}/pkg-check-artifact
- name: Verify package from archive
run: |
bash ./scripts/pkg-check/check-package.sh check \
--work-dir "$RUNNER_TEMP/pkg-check-check" \
--from-archive "$RUNNER_TEMP/pkg-check-artifact/visioncpp-package.tgz"