Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Aug 18, 2024
1 parent 4b5b710 commit e5a13d5
Show file tree
Hide file tree
Showing 21 changed files with 1,835 additions and 824 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/alpinelinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
strategy:
fail-fast: false
matrix:
tag: ['3.16','3.15']
tag: ['3.18', '3.17', '3.16','3.19']

runs-on: ubuntu-latest

container: alpine:${{ matrix.tag }}

steps:
- run: df -h
- run: apk update
- run: apk add cmake ninja gcc pkgconf libc-dev curl-dev openssl-dev libgit2-dev libarchive-dev yaml-dev jansson-dev sqlite-dev

Expand Down Expand Up @@ -56,47 +57,45 @@ jobs:
- run: ./output/bin/uppm depends android-sdk -o android-sdk-dependencies && ls && rm android-sdk-dependencies
- run: ./output/bin/uppm depends android-sdk -o android-sdk-dependencies && ls && rm android-sdk-dependencies

- run: ./output/bin/uppm info @all
- run: ./output/bin/uppm info unzip
- run: ./output/bin/uppm info unzip --json
- run: ./output/bin/uppm info unzip --yaml
- run: ./output/bin/uppm info unzip version
- run: ./output/bin/uppm info unzip license
- run: ./output/bin/uppm info unzip summary
- run: ./output/bin/uppm info unzip webpage
- run: ./output/bin/uppm info unzip bin-url
- run: ./output/bin/uppm info unzip bin-sha
- run: ./output/bin/uppm info unzip install
- run: ./output/bin/uppm info unzip formula
- run: ./output/bin/uppm info-available unzip
- run: ./output/bin/uppm info-available unzip --json
- run: ./output/bin/uppm info-available unzip --yaml
- run: ./output/bin/uppm info-available unzip version
- run: ./output/bin/uppm info-available unzip license
- run: ./output/bin/uppm info-available unzip summary
- run: ./output/bin/uppm info-available unzip webpage
- run: ./output/bin/uppm info-available unzip bin-url
- run: ./output/bin/uppm info-available unzip bin-sha
- run: ./output/bin/uppm info-available unzip install
- run: ./output/bin/uppm info-available unzip formula

- run: ./output/bin/uppm fetch gzip
- run: ./output/bin/uppm fetch gsed -v

- run: ./output/bin/uppm install unzip

- run: ./output/bin/uppm info unzip installed-dir
- run: ./output/bin/uppm info unzip installed-files
- run: ./output/bin/uppm info unzip installed-receipt-path
- run: ./output/bin/uppm info unzip installed-receipt-json
- run: ./output/bin/uppm info unzip installed-receipt-yaml
- run: ./output/bin/uppm info unzip installed-timestamp-unix
- run: ./output/bin/uppm info unzip installed-timestamp-iso-8601
- run: ./output/bin/uppm info unzip installed-timestamp-rfc-3339
- run: ./output/bin/uppm info unzip installed-version
- run: ./output/bin/uppm info-installed unzip --prefix
- run: ./output/bin/uppm info-installed unzip --files
- run: ./output/bin/uppm info-installed unzip --json
- run: ./output/bin/uppm info-installed unzip --yaml
- run: ./output/bin/uppm info-installed unzip timestamp-unix
- run: ./output/bin/uppm info-installed unzip timestamp-iso-8601
- run: ./output/bin/uppm info-installed unzip timestamp-rfc-3339
- run: ./output/bin/uppm info-installed unzip version

- run: ./output/bin/uppm tree unzip
- run: ./output/bin/uppm tree unzip -L 3

- run: |
sed -i '/^version: /c version: 1000' $(./output/bin/uppm info unzip formula | head -n 1 | cut -d ' ' -f2)
sed -i '/^version: /c version: 1000' $(./output/bin/uppm info-available unzip formula)
- 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 unzip
- run: ./output/bin/uppm is-outdated unzip
- run: ./output/bin/uppm is-outdated unzip || echo not outdated

- run: ./output/bin/uppm upgrade unzip
- run: ./output/bin/uppm reinstall unzip
Expand Down
44 changes: 21 additions & 23 deletions .github/workflows/archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,47 +47,45 @@ jobs:
- run: ./output/bin/uppm depends android-sdk -t box
- run: ./output/bin/uppm depends android-sdk -t dot

- run: ./output/bin/uppm info @all
- run: ./output/bin/uppm info unzip
- run: ./output/bin/uppm info unzip --json
- run: ./output/bin/uppm info unzip --yaml
- run: ./output/bin/uppm info unzip version
- run: ./output/bin/uppm info unzip license
- run: ./output/bin/uppm info unzip summary
- run: ./output/bin/uppm info unzip webpage
- run: ./output/bin/uppm info unzip bin-url
- run: ./output/bin/uppm info unzip bin-sha
- run: ./output/bin/uppm info unzip install
- run: ./output/bin/uppm info unzip formula
- run: ./output/bin/uppm info-available unzip
- run: ./output/bin/uppm info-available unzip --json
- run: ./output/bin/uppm info-available unzip --yaml
- run: ./output/bin/uppm info-available unzip version
- run: ./output/bin/uppm info-available unzip license
- run: ./output/bin/uppm info-available unzip summary
- run: ./output/bin/uppm info-available unzip webpage
- run: ./output/bin/uppm info-available unzip bin-url
- run: ./output/bin/uppm info-available unzip bin-sha
- run: ./output/bin/uppm info-available unzip install
- run: ./output/bin/uppm info-available unzip formula

- run: ./output/bin/uppm fetch gzip
- run: ./output/bin/uppm fetch gsed -v

- run: ./output/bin/uppm install unzip

- run: ./output/bin/uppm info unzip installed-dir
- run: ./output/bin/uppm info unzip installed-files
- run: ./output/bin/uppm info unzip installed-receipt-path
- run: ./output/bin/uppm info unzip installed-receipt-json
- run: ./output/bin/uppm info unzip installed-receipt-yaml
- run: ./output/bin/uppm info unzip installed-timestamp-unix
- run: ./output/bin/uppm info unzip installed-timestamp-iso-8601
- run: ./output/bin/uppm info unzip installed-timestamp-rfc-3339
- run: ./output/bin/uppm info unzip installed-version
- run: ./output/bin/uppm info-installed unzip --prefix
- run: ./output/bin/uppm info-installed unzip --files
- run: ./output/bin/uppm info-installed unzip --json
- run: ./output/bin/uppm info-installed unzip --yaml
- run: ./output/bin/uppm info-installed unzip timestamp-unix
- run: ./output/bin/uppm info-installed unzip timestamp-iso-8601
- run: ./output/bin/uppm info-installed unzip timestamp-rfc-3339
- run: ./output/bin/uppm info-installed unzip version

- run: ./output/bin/uppm tree unzip
- run: ./output/bin/uppm tree unzip -L 3

- run: |
sed -i '/^version: /c version: 1000' $(./output/bin/uppm info unzip formula | head -n 1 | cut -d ' ' -f2)
sed -i '/^version: /c version: 1000' $(./output/bin/uppm info-available unzip formula)
- 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 unzip
- run: ./output/bin/uppm is-outdated unzip
- run: ./output/bin/uppm is-outdated unzip || echo not outdated

- run: ./output/bin/uppm upgrade unzip
- run: ./output/bin/uppm reinstall unzip
Expand Down
Loading

0 comments on commit e5a13d5

Please sign in to comment.