Skip to content

Commit

Permalink
chore: add a github workflow to build for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Feb 21, 2025
1 parent b1a29e8 commit 2f00296
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build MUSL Binary

on:
push:
branches:
- main

jobs:
build:
name: Build MUSL Binary
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y musl-tools pkg-config libssl-dev
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Build binary
run: cargo build --release --target x86_64-unknown-linux-musl

- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: binary-musl
path: target/x86_64-unknown-linux-musl/release/*
if-no-files-found: error

0 comments on commit 2f00296

Please sign in to comment.