Giter Club home page Giter Club logo

pkgbuild-action's Introduction

pkgbuild-action

GitHub action to build and check a PKGBUILD package

Features

  • Checks that .SRCINFO matches PKGBUILD if .SRCINFO exists
  • Builds package(s) with makepkg (configurable arguments)
  • Runs on a bare minimum Arch Linux install to help detect missing dependencies
  • Outputs built package archives
  • Checks PKGBUILD and package archives with namcap

Interface

Inputs:

  • pkgdir: Relative path to directory containing the PKGBUILD file (repo root by default).
  • aurDeps: Support AUR dependencies if nonempty.
  • namcapDisable: Disable namcap checks if nonempty.
  • namcapRules: A comma-separated list of rules for namcap to run.
  • namcapExcludeRules: A comma-separated list of rules for namcap not to run.
  • makepkgArgs: Additional arguments to pass to makepkg.

Outputs:

  • pkgfileN: Filename of Nth built package archive (ordered as makepkg --packagelist). Empty if not built. N = 0, 1, ...

Example Usage

name: PKGBUILD CI

on: [push, pull_request]

jobs:
  pkgbuild:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Makepkg Build and Check
      id: makepkg
      uses: edlanglois/pkgbuild-action@v1
    - name: Print Package Files
      run: |
        echo "Successfully created the following package archive"
        echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}"
    # Uncomment to upload the package as an artifact
    # - name: Upload Package Archive
    #   uses: actions/upload-artifact@v2
    #   with:
    #     path: ${{ steps.makepkg.outputs.pkgfile0 }}

pkgbuild-action's People

Contributors

edlanglois avatar p1-olm avatar pheiduck avatar rufflewind avatar vchernin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pkgbuild-action's Issues

Error entrypoint.sh

Hello, i have an issue while running your action :

chmod: changing permissions of '/github/workspace/src': Operation not permitted
==> ERROR: An unknown error has occurred. Exiting...
/entrypoint.sh: line 59:   909 User defined signal 1   sudo -H -u builder makepkg --syncdeps --noconfirm ${INPUT_MAKEPKGARGS:-}

That is my action script :

jobs:  
  pkgbuild:    
    runs-on: ubuntu-latest    
    steps:    
      - name: Checkout      
        uses: actions/checkout@v2    
      - name: Makepkg     
        id: makepkg      
        uses: edlanglois/[email protected]    
      - name: Print Package Files      
        run: |        
          echo "Successfully created the following package archive"        
          echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}"    
      - name: Upload Package Archive      
        uses: actions/upload-artifact@v2     
        with:        
          path: ${{ steps.makepkg.outputs.pkgfile0 }}

Building `yay` fails

I recently started hitting the following error in my GitHub workflows:

==> Starting build()...
pacman-git
go build -trimpath -mod=readonly -modcacherw  -ldflags '-X "main.yayVersion=11.1.2" -X "main.localePath=/usr/share/locale/" -linkmode=external' -buildmode=pie -o yay
go: downloading github.com/Jguer/go-alpm/v2 v2.1.1
go: downloading github.com/Jguer/aur v1.0.1
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/leonelquinteros/gotext v1.5.0
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a
go: downloading golang.org/x/text v0.3.7
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
make: *** [Makefile:112: yay] Error 1

Here is one of the failing workflows: https://github.com/thomaseizinger/pkgbuilds/runs/6536807072

Do you have any advice on how to fix this?
I've also found that there is a yay-bin package?

Using that one would - I presume - fix this error and also reduce CI runtime slightly because we don't have to re-build yay on every run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.