Skip to content

optimized

optimized #29

Workflow file for this run

name: build with ppkg on macOS
on:
push:
branches: [ 0.15.4 ]
pull_request:
branches: [ 0.15.4 ]
jobs:
ppkg:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-13, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: create ppkg formula for uppm package
run: |
tee uppm.yml <<EOF
summary: Universal Prebuild Package Manager
git-url: https://github.com/leleliu008/uppm
git-sha: ${{ github.sha }}
version: 0.0.0
license: Apache-2.0
dep-pkg: libcurl libgit2 libarchive libyaml libjansson
install: cmakew -DLINK_STATIC_LIBS=ON
EOF
- run: curl -LO https://raw.githubusercontent.com/leleliu008/ppkg/master/ppkg
- run: chmod a+x ppkg
- run: ./ppkg setup
- run: ./ppkg update
- run: ./ppkg install uppm -I .
- run: ./ppkg tree uppm
- run: ./ppkg pack uppm
- run: tar vxf uppm-*.tar.xz --strip-components=1
- run: echo "SSL_CERT_FILE=$HOME/.ppkg/core/cacert.pem" >> "$GITHUB_ENV"
- run: bin/uppm
- run: bin/uppm --help
- run: bin/uppm --version
- run: bin/uppm -h
- run: bin/uppm -V
- run: bin/uppm about
- run: bin/uppm about -v
- run: bin/uppm integrate zsh
- run: bin/uppm update
- run: bin/uppm search zip
- run: bin/uppm depends zip
- run: bin/uppm depends android-sdk
- run: bin/uppm depends android-sdk -t box
- run: bin/uppm depends android-sdk -t dot
- run: bin/uppm info-available gsed
- run: bin/uppm info-available gsed --json
- run: bin/uppm info-available gsed --yaml
- run: bin/uppm info-available gsed version
- run: bin/uppm info-available gsed license
- run: bin/uppm info-available gsed summary
- run: bin/uppm info-available gsed webpage
- run: bin/uppm info-available gsed bin-url
- run: bin/uppm info-available gsed bin-sha
- run: bin/uppm info-available gsed install
- run: bin/uppm info-available gsed formula
- run: bin/uppm fetch gtar
- run: bin/uppm fetch gtar -v
- run: bin/uppm install gsed
- run: bin/uppm info-installed gsed --files
- run: bin/uppm info-installed gsed --json
- run: bin/uppm info-installed gsed --yaml
- run: bin/uppm info-installed gsed timestamp-unix
- run: bin/uppm info-installed gsed timestamp-iso-8601
- run: bin/uppm info-installed gsed timestamp-rfc-3339
- run: bin/uppm info-installed gsed version
- run: bin/uppm tree gsed
- run: bin/uppm tree gsed -L 3
- run: |
printf '%s\n' 'version: 1000' >> ~/.uppm/repos.d/official-core/formula/gsed.yml
- run: bin/uppm ls-available
- run: bin/uppm ls-installed
- run: bin/uppm ls-outdated
- run: bin/uppm is-available curl
- run: bin/uppm is-installed gsed
- run: bin/uppm is-outdated gsed || echo not outdated
- run: bin/uppm upgrade gsed
- run: bin/uppm reinstall gsed
- run: bin/uppm uninstall gsed
- run: bin/uppm formula-repo-list
- run: bin/uppm formula-repo-add my_repo https://github.com/leleliu008/uppm-formula-repository-macos-x86_64
- run: bin/uppm formula-repo-del my_repo
- run: bin/uppm cleanup