-
Notifications
You must be signed in to change notification settings - Fork 3
140 lines (103 loc) · 4.31 KB
/
ubuntu.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Ubuntu
on:
push:
branches: [ c ]
pull_request:
branches: [ c ]
jobs:
test:
env:
DEBIAN_FRONTEND: noninteractive
TZ: Asia/Shanghai
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [20.04, 22.04]
container: ubuntu:${{ matrix.version }}
steps:
- uses: actions/checkout@main
- run: apt -y update
- run: apt -y install cmake ninja-build pkg-config g++ linux-headers-generic curl zip unzip tar git
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: microsoft/vcpkg
path: vcpkg
- run: cd vcpkg && ./bootstrap-vcpkg.sh
- run: cd vcpkg && ./vcpkg install curl openssl libgit2 libarchive libyaml jansson zlib
- run: |
cmake \
-S . \
-B build.d \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE=$PWD/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_INSTALL_PREFIX=./output \
-DCMAKE_VERBOSE_MAKEFILE=ON
- run: cmake --build build.d
- run: cmake --install build.d
- run: ./output/bin/ppkg
- run: ./output/bin/ppkg --help
- run: ./output/bin/ppkg -h
- run: ./output/bin/ppkg --version
- run: ./output/bin/ppkg -V
- run: ./output/bin/ppkg setup -v
- run: ./output/bin/ppkg env
- run: ./output/bin/ppkg env -v
- run: ./output/bin/ppkg integrate zsh
- run: ./output/bin/ppkg integrate zsh -v
- run: ./output/bin/ppkg update
- run: ./output/bin/ppkg search lib
- run: ./output/bin/ppkg search zip
- run: ./output/bin/ppkg info @all
- run: ./output/bin/ppkg info libzip
- run: ./output/bin/ppkg info libzip --yaml
- run: ./output/bin/ppkg info libzip --json
- run: ./output/bin/ppkg info libzip summary
- run: ./output/bin/ppkg info libzip version
- run: ./output/bin/ppkg info libzip license
- run: ./output/bin/ppkg info libzip web-url
- run: ./output/bin/ppkg info libzip src-url
- run: ./output/bin/ppkg info libzip src-sha
- run: ./output/bin/ppkg depends libzip
- run: ./output/bin/ppkg depends libzip -t dot
- run: ./output/bin/ppkg depends libzip -t box
- run: ./output/bin/ppkg fetch gzip
- run: ./output/bin/ppkg fetch gsed -v
- run: apt -y install g++ linux-headers-generic
- run: ./output/bin/ppkg install libzip
- run: ./output/bin/ppkg install sd
- run: ./output/bin/ppkg install gh
- run: ./output/bin/ppkg tree libzip
- run: ./output/bin/ppkg info libzip installed-dir
- run: ./output/bin/ppkg info libzip installed-files
- run: ./output/bin/ppkg info libzip receipt-path
- run: ./output/bin/ppkg info libzip receipt-json
- run: ./output/bin/ppkg info libzip receipt-yaml
- run: ./output/bin/ppkg info libzip installed-timestamp-unix
- run: ./output/bin/ppkg info libzip installed-timestamp-iso-8601
- run: ./output/bin/ppkg info libzip installed-timestamp-rfc-3339
- run: ./output/bin/ppkg info libzip installed-version
- run: ./output/bin/ppkg pack libzip
- run: ./output/bin/ppkg pack libzip -t tar.gz
- run: ./output/bin/ppkg pack libzip -t tar.lz
- run: ./output/bin/ppkg pack libzip -t tar.xz
- run: ./output/bin/ppkg pack libzip -t tar.bz2
- run: ./output/bin/ppkg pack libzip -t zip
- run: |
printf '%s\n' 'version: 1000' >> ~/.ppkg/repos.d/offical-core/formula/libzip.yml
- run: ./output/bin/ppkg ls-available
- run: ./output/bin/ppkg ls-installed
- run: ./output/bin/ppkg ls-outdated
- run: ./output/bin/ppkg is-available libzip
- run: ./output/bin/ppkg is-installed libzip
- run: ./output/bin/ppkg is-outdated libzip
- run: ./output/bin/ppkg upgrade libzip
- run: ./output/bin/ppkg reinstall libzip
- run: ./output/bin/ppkg uninstall libzip
- run: ./output/bin/ppkg formula-repo-list
- run: ./output/bin/ppkg formula-repo-add my_repo https://github.com/leleliu008/ppkg-formula-repository-offical-core
- run: ./output/bin/ppkg formula-repo-list
- run: ./output/bin/ppkg formula-repo-del my_repo
- run: ./output/bin/ppkg cleanup
#- run: ./output/bin/ppkg upgrade-self