Giter Club home page Giter Club logo

maturin-action's Introduction

maturin-action

GitHub Actions

GitHub Action to install and run a custom maturin command

Usage

- uses: actions-rs/toolchain@v1
  with:
    profile: minimal
    toolchain: stable
    override: true
- uses: messense/maturin-action@v1
  with:
    maturin-version: latest
    command: build
    args: --release

Examples

Inputs

Name Required Description Type Default
command No maturin command to run string build
args No Arguments to pass to maturin subcommand string
maturin-version No The version of maturin to use. Must match a tagged release string latest
manylinux No Control the manylinux platform tag on linux, ignored on other platforms, use auto to build for lowest compatible string Defaults to auto for the publish command
target No The --target option for Cargo string
container No manylinux docker container image name string Default depends on target and manylinux options, Set to off to disable manylinux docker build and build on the host instead.
rust-toolchain No Rust toolchain name string Defaults to stable for Docker build
rustup-components No Rustup components string Defaults to empty

manylinux Docker container

By default, this action uses the following containers for supported architectures and manylinux versions.

Architecture Manylinux version Default container
x86_64 2010/2_12 quay.io/pypa/manylinux2010_x86_64:latest
x86_64 2014/2_17 quay.io/pypa/manylinux2014_x86_64:latest
x86_64 2_24 quay.io/pypa/manylinux_2_24_x86_64:latest
i686 2010/2_12 quay.io/pypa/manylinux2010_i686:latest
i686 2014/2_17 quay.io/pypa/manylinux2014_i686:latest
i686 2_24 quay.io/pypa/manylinux_2_24_i686:latest
aarch64 2014/2_17 messense/manylinux2014-cross:aarch64
aarch64 2_24 messense/manylinux_2_24-cross:aarch64
armv7l 2014/2_17 messense/manylinux2014-cross:armv7
armv7l 2_24 messense/manylinux_2_24-cross:armv7
ppc64le 2014/2_17 messense/manylinux2014-cross:ppc64le
ppc64le 2_24 messense/manylinux_2_24-cross:ppc64le
ppc64 2014/2_17 messense/manylinux2014-cross:ppc64
s390x 2014/2_17 messense/manylinux2014-cross:s390x
s390x 2_24 messense/manylinux_2_24-cross:s390x

You can override it by supplying the container input. Note that if use official manylinux docker images for platforms other than x86_64 and i686, you will need to setup QEMU before using this action, for example

- name: Set up QEMU
  id: qemu
  uses: docker/setup-qemu-action@v1
  with:
    image: tonistiigi/binfmt:latest
    platforms: all
- uses: messense/maturin-action@v1
  with:
    maturin-version: latest
    command: build
    args: --release

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

maturin-action's People

Contributors

adriangb avatar dependabot[bot] avatar messense avatar tpt avatar wfxr avatar

Watchers

 avatar  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.