Coder Social home page Coder Social logo

stevenleadbeater / rust-musl-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emk/rust-musl-builder

6.0 1.0 1.0 98 KB

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.

License: MIT License

Shell 20.62% Dockerfile 79.38%

rust-musl-builder's Introduction

GitHub Action for Rust and MUSL

Action provides an environment with stable Rust, MUSL and x86_64-unknown-linux-musl target. This is based heavily off https://github.com/emk/rust-musl-builder. code for the base image from which the Dockerfile derives is here: https://github.com/stevenleadbeater/rust-musl-builder-base The following static binaries are compiled in to the base image as per the emk/rust-musl-builder repo

  1. Open SSL
  2. ZLib
  3. LibPQ

Usage

To compile a rust binary/library with x86_64-unknown-linux-musl target:

name: Static Musl Build

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      
    - name: Build static
      uses:  stevenleadbeater/rust-musl-builder@master
      with:
          args: /bin/bash -c "cargo build --release --target=x86_64-unknown-linux-musl"

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

rust-musl-builder's People

Contributors

emk avatar snobu avatar insanitybit avatar dvic avatar frol avatar icorderi avatar mriehl avatar bomgar avatar tzrlk avatar silvio avatar svend avatar tofay avatar cssivision avatar

Stargazers

Hossein Mayboudi avatar Mahesh Rayas avatar Mathijs van Veluw avatar Luiz Carvalho avatar  avatar  avatar

Watchers

James Cloos avatar

Forkers

mkatychev

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.