mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add musl build target
This commit is contained in:
@@ -24,6 +24,20 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
cargo test
|
cargo test
|
||||||
|
test_Ubuntu_musl:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Rust Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
- name: dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
|
||||||
|
cargo install cross
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
cross test
|
||||||
test_Flatpak:
|
test_Flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ jobs:
|
|||||||
asset_name: linux_BoilR
|
asset_name: linux_BoilR
|
||||||
args: --best --lzma
|
args: --best --lzma
|
||||||
strip: true
|
strip: true
|
||||||
|
- os: ubuntu-latest
|
||||||
|
file: target/x86_64-unknown-linux-musl/release/boilr
|
||||||
|
asset_name: linux_BoilR_musl
|
||||||
|
args: -+
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
strip: false
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
file: target/release/boilr.exe
|
file: target/release/boilr.exe
|
||||||
asset_name: windows_BoilR.exe
|
asset_name: windows_BoilR.exe
|
||||||
@@ -53,6 +59,9 @@ jobs:
|
|||||||
# target: aarch64-apple-darwin
|
# target: aarch64-apple-darwin
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install cross
|
||||||
|
if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}}
|
||||||
|
run: cargo install cross
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ matrix.os == 'ubuntu-latest'}}
|
if: ${{ matrix.os == 'ubuntu-latest'}}
|
||||||
run: |
|
run: |
|
||||||
@@ -62,11 +71,14 @@ jobs:
|
|||||||
id: rust_cache
|
id: rust_cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
- name: Build Release Version
|
- name: Build Release Version
|
||||||
if: ${{ matrix.target != 'aarch64-apple-darwin' }}
|
if: ${{ matrix.target != 'aarch64-apple-darwin' && matrix.target != 'x86_64-unknown-linux-musl'}}
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Build aarch64 Release Version
|
- name: Build aarch64 Release Version
|
||||||
if: ${{matrix.target == 'aarch64-apple-darwin' }}
|
if: ${{matrix.target == 'aarch64-apple-darwin' }}
|
||||||
run: rustup target add aarch64-apple-darwin && cargo build --release --target aarch64-apple-darwin
|
run: rustup target add aarch64-apple-darwin && cargo build --release --target aarch64-apple-darwin
|
||||||
|
- name: Build musl Release Version
|
||||||
|
if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}}
|
||||||
|
run: cross build --release
|
||||||
- name: Compress binaries
|
- name: Compress binaries
|
||||||
uses: svenstaro/upx-action@v2
|
uses: svenstaro/upx-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user