File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Package Check
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+ name : Build package (static ggml)
15+ runs-on : ubuntu-24.04
16+ timeout-minutes : 20
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+ with :
22+ submodules : recursive
23+
24+ - name : Install dependencies
25+ run : |
26+ sudo apt-get update
27+ sudo apt-get install -y build-essential cmake ninja-build
28+
29+ - name : Build package archive
30+ run : |
31+ bash ./scripts/pkg-check/check-package.sh build \
32+ --work-dir "$RUNNER_TEMP/pkg-check-build" \
33+ --archive "$RUNNER_TEMP/pkg-check-build/visioncpp-package.tgz"
34+
35+ - name : Upload package archive
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : visioncpp-package-linux
39+ path : ${{ runner.temp }}/pkg-check-build/visioncpp-package.tgz
40+ if-no-files-found : error
41+
42+ check :
43+ name : Verify package (consumer check)
44+ runs-on : ubuntu-24.04
45+ timeout-minutes : 30
46+ needs : build
47+
48+ steps :
49+ - name : Checkout code
50+ uses : actions/checkout@v4
51+ with :
52+ submodules : recursive
53+
54+ - name : Install dependencies
55+ run : |
56+ sudo apt-get update
57+ sudo apt-get install -y build-essential cmake ninja-build
58+
59+ - name : Download package archive
60+ uses : actions/download-artifact@v4
61+ with :
62+ name : visioncpp-package-linux
63+ path : ${{ runner.temp }}/pkg-check-artifact
64+
65+ - name : Verify package from archive
66+ run : |
67+ bash ./scripts/pkg-check/check-package.sh check \
68+ --work-dir "$RUNNER_TEMP/pkg-check-check" \
69+ --from-archive "$RUNNER_TEMP/pkg-check-artifact/visioncpp-package.tgz"
You can’t perform that action at this time.
0 commit comments