Giter VIP home page Giter VIP logo

cargo-pkgbuild-action's Introduction

Generate and deploy PKGBUILD from Cargo.toml

GitHub Super-Linter CI

This action allows you to generate the PKGBUILD file and publish it in the AUR repository from your Cargo.toml metadata.

Note

This uses cargo-aur to make all this possible

Usage

Here's an example of how to use this action in a workflow file:

name: Example

on:
  push:
    tags:
      - "*" # Run on any tag

jobs:
    aur-publish:
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v4

        - name: Publish AUR package
          uses: SergioRibera/cargo-pkgbuild-action@v1
          with:
            github_token: ${{ secrets.GITHUB_TOKEN }}
            ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
            proyect_path: 'test_proyect' # The project path to generate PKGBUILD

Inputs

Input Default Description
proyect_path . The project path to generate PKGBUILD
musl false Build the binary as musl
file `` The path to the .tar.gz file to use
output out/ Defines the folder from which the PKGBUILD file will be generated.
package_name ${{ github.event.repository.name }} The name in AUR of the package to release
git_username AUR Release Action The username to use for the git commit
git_email [email protected] The email to use for the git commit
ssh_private_key true The private key to use for the git commit
publish true To publish or not to publish the package
test_pkgbuild true Whether to try building and installing the package or not
github_token true The GitHub token to use for the release
commit_message Bump %FILENAME% to %VERSION% The commit message to use for the git commit

Outputs

Output Description
file The path to the generated .tar.gz file
pkgbuild The path to the generated PKGBUILD file

cargo-pkgbuild-action's People

Contributors

dependabot[bot] avatar sergioribera avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.