Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Add packagecore packaging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed May 25, 2020
1 parent 472fd1f commit 5c527dc
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-and-upload-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build and upload artifacts
on:
push:
tags:
- "v*"
jobs:
build-and-upload-artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install PackageCore
run: |
python -m pip install --upgrade pip
pip install packagecore
- name: Build artifacts with PackageCore
run: |
version=${GITHUB_REF##*/v}
packagecore -o dist/ "$version"
- name: Create draft release with artifacts
run: |
tag=${GITHUB_REF##*/}
asset_options=()
for asset in dist/*; do
asset_options+=(-a "$asset")
done
hub release create --draft "${asset_options[@]}" --message "googler $tag" "$tag"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88 changes: 88 additions & 0 deletions packagecore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: googler
maintainer: Arun Prakash Jana <engineerarun@gmail.com>
license: GPLv3
summary: Google from the command-line.
homepage: https://github.com/jarun/googler
commands:
install:
- make PREFIX="/usr" install DESTDIR="${BP_DESTDIR}"
packages:
archlinux:
builddeps:
- make
deps:
- python
container: "archlinux/base"
centos7.5:
builddeps:
- make
deps:
- python
centos7.6:
builddeps:
- make
deps:
- python
centos7.7:
builddeps:
- make
deps:
- python
centos8.0:
builddeps:
- make
deps:
- python3
commands:
precompile:
- dnf install python3
debian8:
builddeps:
- make
deps:
- python3
debian9:
builddeps:
- make
deps:
- python3
debian10:
builddeps:
- make
deps:
- python3
fedora30:
builddeps:
- make
deps:
- python3
fedora31:
builddeps:
- make
deps:
- python3
opensuse15.1:
builddeps:
- make
deps:
- python3
ubuntu14.04:
builddeps:
- make
deps:
- python3
ubuntu16.04:
builddeps:
- make
deps:
- python3
ubuntu18.04:
builddeps:
- make
deps:
- python3
ubuntu20.04:
builddeps:
- make
deps:
- python3

0 comments on commit 5c527dc

Please sign in to comment.