Skip to content

R1tschY/sailfish-build-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sailfish-build-rpm

Github Action for building RPMs for Sailfish OS

This project uses mb2 in dockerized Sailfish OS Platfrom SDK to build RPMs.

Example

- uses: R1tschY/sailfish-build-rpm@v1
  with:
    arch: "armv7hl"
    release: "4.1.0.24"
    fix-version: false

For a example project look at https://github.com/R1tschY/sailfish-build-rpm-test

Usage

- uses: R1tschY/sailfish-build-rpm@v1
  with:
    # Architecture to compile for (`armv7hl`, `i486` or `aarch64`).
    arch: ""

    # Version of Sailfish to compile for. For example, 4.1.0.24
    release: ""

    # Perform quality checks. (See `mb2 check --help` for more information)
    check: ""
    
    # Source directory using as working directory for mb2.
    # Default: checkout directory
    source-dir: ""
    
    # Basename of Docker image to use (name without tag).
    # Default: ghcr.io/r1tschy/sailfishos-platform-sdk
    image: ""
    
    # Enable debug build (passes --enabled-debug to mb2).
    # Default: false
    enable-debug: ""
    
    # Directory the resulting RPM artifacts are placed in.
    # Default: ./RPMS
    output-dir: ""
    
    # Path to `.spec` file to use for building RPM.
    # Default: Uses `.spec` file from `rpm` directory
    specfile: ""
    
    # Overwrite version from git information.
    # `true` or `false` are allowed.
    # (passes --fix-version to mb2)
    # Default: false
    fix-version: ""

Example

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    name: Build
    steps:
    - uses: actions/checkout@v2

    - id: build
      uses: R1tschY/sailfish-build-rpm@v1
      with:
        arch: 'armv7hl'
        release: '4.1.0.24'
        fix-version: false
        check: true

    - name: Upload build result
      uses: actions/upload-artifact@v2
      with:
        name: rpms
        path: RPMS

About

Github Action to easily build RPMs for Sailfish OS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages