Skip to content

Commit

Permalink
Add musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaschan committed Mar 23, 2024
1 parent 3400073 commit 56a14ce
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux
name: Linux GNU

on:
push:
Expand All @@ -24,5 +24,5 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: insanity
name: insanity-gnu
path: target/release/insanity
30 changes: 30 additions & 0 deletions .github/workflows/linux-musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linux musl

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev
- name: Rustup Toolchain
run: rustup toolchain install stable-x86_64-unknown-linux-musl
- name: Rustup Target
run: rustup target add x86_64-unknown-linux-musl
- name: Build
run: cargo +stable-x86_64-unknown-linux-musl build --release --verbose --target x86_64-unknown-linux-musl
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: insanity-musl
path: target/x86_64-unknown-linux-musl/release/insanity
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# insanity P2P voice chat

[![Linux](https://github.com/nicolaschan/insanity/actions/workflows/linux.yml/badge.svg)](https://github.com/nicolaschan/insanity/actions/workflows/linux.yml)
[![Linux GNU](https://github.com/nicolaschan/insanity/actions/workflows/linux-gnu.yml/badge.svg)](https://github.com/nicolaschan/insanity/actions/workflows/linux-gnu.yml)
[![Linux musl](https://github.com/nicolaschan/insanity/actions/workflows/linux-musl.yml/badge.svg)](https://github.com/nicolaschan/insanity/actions/workflows/linux-musl.yml)
[![Windows MinGW](https://github.com/nicolaschan/insanity/actions/workflows/windows-mingw.yml/badge.svg)](https://github.com/nicolaschan/insanity/actions/workflows/windows-mingw.yml)
[![Windows MSVC](https://github.com/nicolaschan/insanity/actions/workflows/windows-msvc.yml/badge.svg)](https://github.com/nicolaschan/insanity/actions/workflows/windows-msvc.yml)

Expand Down

0 comments on commit 56a14ce

Please sign in to comment.