ci: try compiling natively with linux

This commit is contained in:
talwat 2024-10-02 14:34:30 +02:00
parent c2909b25ec
commit 6c61650747
3 changed files with 8 additions and 10 deletions

View File

@ -19,13 +19,6 @@ jobs:
name: lowfi-linux-x86_64 name: lowfi-linux-x86_64
command: build 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 - release_for: Windows x86_64
os: windows-latest os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
@ -61,13 +54,18 @@ jobs:
run: | run: |
sudo apt install -y libasound2-dev librust-alsa-sys-dev librust-curl+openssl-sys-dev 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 uses: houseabsolute/actions-rust-cross@v0
with: with:
command: ${{ matrix.command }} command: ${{ matrix.command }}
target: ${{ matrix.target }} target: ${{ matrix.target }}
args: "--locked --release" args: "--locked --release"
- name: Build binary (native)
if: matrix.os == 'ubuntu-latest'
run: "cargo build --locked --release"
- name: Rename binary - name: Rename binary
run: | run: |
cd ./target/${{ matrix.target }}/release cd ./target/${{ matrix.target }}/release

2
Cargo.lock generated
View File

@ -982,7 +982,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]] [[package]]
name = "lowfi" name = "lowfi"
version = "1.2.3" version = "1.2.4"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"arc-swap", "arc-swap",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "lowfi" name = "lowfi"
version = "1.2.3" version = "1.2.4"
edition = "2021" edition = "2021"
description = "An extremely simple lofi player." description = "An extremely simple lofi player."
license = "MIT" license = "MIT"