ActionBuilderPlugin

1.0.8

Swift Package Manager plugin which runs ActionBuilder to create a Github Actions workflow for a swift package.
elegantchaos/ActionBuilderPlugin

What's New

1.0.8

2022-07-25T15:23:05Z

The generated header contains a proper version number for the ActionBuilderTool.

If an explicit test=true/false value isn't declared in the config file, we default to a test mode of test if there is a test target, or build if not.

Test results Latest release swift 5.6 shield Platforms: macOS

ActionBuilderPlugin

A Swift Package Manager command which builds a Github Actions workflow for the current package.

By default the workflow file will be generated at .github/workflows/Tests.yml, and be based on details obtained by examining the Package.swift file -- although this can be configured.

See ActionBuilderCore for full details on what the workflow contains and how to alter it.

Usage

Add this repo to your package dependencies:

    dependencies: [
        .package(url: "https://github.com/elegantchaos/ActionBuilderPlugin.git", from: "1.0.2"),
        /* other dependencies here... */ 
    ],

Invoke the tool from the command line:

swift package plugin --allow-writing-to-package-directory generate-workflow

Configuration

By default, the plugin attempts to guess exactly what the workflow should do, based on the contents of the Package.swift file.

If you want more control though, you can add a .actionbuilder.json file at the root of the package. This lets you specify a number of options when generating the workflow file.

See ActionBuilderCore for full details.

If you pass the --create-config flag to the plugin itself, it will make a new empty config file for you.

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

Last updated: Mon Sep 19 2022 12:08:35 GMT-0500 (GMT-05:00)