diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4c526f..e8117d4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,20 @@ jobs: - name: Test run: | 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: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release_on_v_tag.yml b/.github/workflows/release_on_v_tag.yml index fb2269e..01b94f2 100644 --- a/.github/workflows/release_on_v_tag.yml +++ b/.github/workflows/release_on_v_tag.yml @@ -35,6 +35,12 @@ jobs: asset_name: linux_BoilR args: --best --lzma 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 file: target/release/boilr.exe asset_name: windows_BoilR.exe @@ -53,6 +59,9 @@ jobs: # target: aarch64-apple-darwin steps: - uses: actions/checkout@v3 + - name: Install cross + if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}} + run: cargo install cross - name: Install dependencies if: ${{ matrix.os == 'ubuntu-latest'}} run: | @@ -62,11 +71,14 @@ jobs: id: rust_cache uses: Swatinem/rust-cache@v2 - 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 - name: Build aarch64 Release Version if: ${{matrix.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 uses: svenstaro/upx-action@v2 with: