Giter Site home page Giter Site logo

gcarreno / re-usable-workflows Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 144 KB

Collection of GitHub reusable workflows for a variety of languages

License: MIT License

Pascal 100.00%
fpc free-pascal freepascal github-reusable-workflows github-workflow github-workflows lazarus

re-usable-workflows's Introduction

GitHub Reusable Workflows

  • Lazarus Main Workflow
  • C++ Main Workflow

Supports Windows Supprts Linux License Latest Release Downloads

Collection of GitHub reusable workflows for a variety of languages

Warning

I have not yet implemented sane defaults and error detection. I've also made a hard coded dependency on git-cliff to produce the release notes. The next phase will be to get all this corrected and/or made optional, somehow.

Languages

Object Pascal: Lazarus

  • main This is the one you should copy to your Lazarus repository, and customise, because it calls the ones bellow
  • build This one takes care of compiling the app itself and uploading the compiled binaries as an artefact. It's called remotely from the main one above
  • test This one takes care of compiling the test app and running it. It's called remotely from the main one above
  • release This one takes care of downloading the artefacts and then creating a release with archived binaries. It's called remotely from the main one above

The JSON config string

Example:

{
  "app-name": "helloworld",
  "lpi-path": "lazarus/src",
  "bin-path": "lazarus/bin",
  "build-mode": "Release",
  "lazarus-packages": "",
  "matrix": {
    "os": [
      "ubuntu-latest",
      "windows-latest",
      "macos-latest"
    ],
    "include":[
      {
        "os": "ubuntu-latest",
        "triplet": "x86_64-linux"
      },
      {
        "os": "windows-latest",
        "triplet": "x86_64-win64"
      },
      {
        "os": "macos-latest",
        "triplet": "x86_64-darwin"
      }
    ],
    "lazarus-versions": [
      "stable",
      "2.0.12"
    ]
  }
}

app-name

The application name.

This field is used to find the .lpi file one the lpi-path folder and also the binary on bin-path.

lpi-path

The path where the .lpi file resides.

Example value: "src"

bin-path

The path where the compiled binary can be found.

Example value: "bin"

build-mode

The name of one of the build modes you've defined on your .lpi file.

Example values: "Default", "Release", "Debug"

matrix

A JSON representation of the matrix to allow parallel compiling for various platforms and Lazarus versions.

NOTE: Needs more explanation

re-usable-workflows's People

Contributors

gcarreno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

edwinyzh

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.