From 6c61650747663d40cc399fe89908c6f96c671817 Mon Sep 17 00:00:00 2001 From: talwat <83217276+talwat@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:34:30 +0200 Subject: [PATCH] ci: try compiling natively with linux --- .github/workflows/build.yml | 14 ++++++-------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb7cc91..0ab663f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,13 +19,6 @@ jobs: name: lowfi-linux-x86_64 command: build - - release_for: Linux aarch64 - os: ubuntu-latest - target: aarch64-unknown-linux-gnu - bin: lowfi - name: lowfi-linux-aarch64 - command: build - - release_for: Windows x86_64 os: windows-latest target: x86_64-pc-windows-msvc @@ -61,12 +54,17 @@ jobs: run: | sudo apt install -y libasound2-dev librust-alsa-sys-dev librust-curl+openssl-sys-dev - - name: Build binary + - name: Build binary (cross) + if: matrix.os != 'ubuntu-latest' uses: houseabsolute/actions-rust-cross@v0 with: command: ${{ matrix.command }} target: ${{ matrix.target }} args: "--locked --release" + + - name: Build binary (native) + if: matrix.os == 'ubuntu-latest' + run: "cargo build --locked --release" - name: Rename binary run: | diff --git a/Cargo.lock b/Cargo.lock index 5869c2f..cae89b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -982,7 +982,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "lowfi" -version = "1.2.3" +version = "1.2.4" dependencies = [ "Inflector", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index c7af054..626eea2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lowfi" -version = "1.2.3" +version = "1.2.4" edition = "2021" description = "An extremely simple lofi player." license = "MIT"