-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (86 loc) · 3.95 KB
/
netbsd.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
name: NetBSD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
netbsd-version: ['10.0', '9.4', '9.3', '9.2']
steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/[email protected]
with:
operating_system: netbsd
version: ${{ matrix.netbsd-version }}
shell: bash
run: |
run() {
printf "\033[0;35m==>\033[0m \033[0;32m%b\n\033[0m" "$*"
eval "$@"
}
run sudo pkgin -y install cmake ninja-build pkg-config clang curl libgit2 libarchive libyaml jansson sqlite
run cmake -S . -B build.d -G Ninja -DCMAKE_INSTALL_PREFIX=./output -DCMAKE_VERBOSE_MAKEFILE=ON
run cmake --build build.d
run cmake --install build.d
export LD_LIBRARY_PATH=/usr/pkg/lib
run sudo rm -rf /usr/pkg/etc/openssl
run sudo pkgin -y install mozilla-rootcerts
run sudo mozilla-rootcerts install
if [ ${{matrix.version}} -eq 8 ] ; then
export SSL_CERT_FILE=/usr/pkg/etc/openssl/certs/ca-certificates.crt
else
export SSL_CERT_FILE=/etc/openssl/certs/ca-certificates.crt
fi
run ./output/bin/uppm
run ./output/bin/uppm --help
run ./output/bin/uppm --version
run ./output/bin/uppm -h
run ./output/bin/uppm -V
run ./output/bin/uppm about
run ./output/bin/uppm about -v
run ./output/bin/uppm integrate zsh
run ./output/bin/uppm update
run ./output/bin/uppm search zip
run ./output/bin/uppm depends gzip
run ./output/bin/uppm info-available gsed
run ./output/bin/uppm info-available gsed --json
run ./output/bin/uppm info-available gsed --yaml
run ./output/bin/uppm info-available gsed version
run ./output/bin/uppm info-available gsed license
run ./output/bin/uppm info-available gsed summary
run ./output/bin/uppm info-available gsed webpage
run ./output/bin/uppm info-available gsed bin-url
run ./output/bin/uppm info-available gsed bin-sha
run ./output/bin/uppm info-available gsed install
run ./output/bin/uppm info-available gsed formula
run ./output/bin/uppm fetch gzip
run ./output/bin/uppm fetch gtar -v
run ./output/bin/uppm install gsed
run ./output/bin/uppm info-installed gsed --files
run ./output/bin/uppm info-installed gsed --json
run ./output/bin/uppm info-installed gsed --yaml
run ./output/bin/uppm info-installed gsed timestamp-unix
run ./output/bin/uppm info-installed gsed timestamp-iso-8601
run ./output/bin/uppm info-installed gsed timestamp-rfc-3339
run ./output/bin/uppm info-installed gsed version
run ./output/bin/uppm tree gsed
run ./output/bin/uppm tree gsed -L 3
printf '%s\n' 'version: 1000' >> ~/.uppm/repos.d/official-core/formula/gsed.yml
run ./output/bin/uppm ls-available
run ./output/bin/uppm ls-installed
run ./output/bin/uppm ls-outdated
run ./output/bin/uppm is-available curl
run ./output/bin/uppm is-installed gsed
run ./output/bin/uppm is-outdated gsed || echo not outdated
run ./output/bin/uppm upgrade gsed
run ./output/bin/uppm reinstall gsed
run ./output/bin/uppm uninstall gsed
run ./output/bin/uppm formula-repo-list
run ./output/bin/uppm formula-repo-add my_repo https://github.com/leleliu008/uppm-formula-repository-linux-x86_64
run ./output/bin/uppm formula-repo-del my_repo
run ./output/bin/uppm cleanup