diff --git a/.github/workflows/build-spotty.yml b/.github/workflows/build-spotty.yml index a68c3a2ab..5ab89b839 100644 --- a/.github/workflows/build-spotty.yml +++ b/.github/workflows/build-spotty.yml @@ -69,18 +69,27 @@ jobs: - name: Prepare build environment run: | + sudo apt-get update + sudo apt install -y musl-tools rustup target add x86_64-unknown-linux-musl - rustup target add i686-unknown-linux-musl + # rustup target add i686-unknown-linux-musl + rustup target add i686-unknown-linux-gnu curl -L https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz | tar xvz mkdir -p releases/i386-linux mkdir -p releases/aarch64-linux mkdir -p releases/arm-linux - - name: Build i686 + - name: Build i686 musl + if: false run: | cargo build --release --target=i686-unknown-linux-musl cp target/i686-unknown-linux-musl/release/spotty releases/i386-linux/spotty + - name: Build i686 gcc + run: | + cargo build --release --target=i686-unknown-linux-tcc + cp target/i686-unknown-linux-gcc/release/spotty releases/i386-linux/spotty + - name: Build x86_64 run: | cargo build --release --target=x86_64-unknown-linux-musl diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6969ff37..f65b12b43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,7 +72,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Write Build Configuration File - uses: DamianReeves/write-file-action@v1.0 + uses: DamianReeves/write-file-action@v1.3 with: path: ./src/client_id.txt contents: ${{ env.KEYMASTER_CLIENT_ID }} @@ -105,7 +105,7 @@ jobs: - run: cargo clippy -p librespot-core - run: cargo hack clippy --each-feature -p librespot-discovery - run: cargo hack clippy --each-feature -p librespot-playback - - run: cargo hack clippy --each-feature + # - run: cargo hack clippy --each-feature test-linux: if: false @@ -185,7 +185,7 @@ jobs: uses: ilammy/setup-nasm@v1.5.1 - name: Write Build Configuration File - uses: DamianReeves/write-file-action@v1.0 + uses: DamianReeves/write-file-action@v1.3 with: path: ./src/client_id.txt contents: ${{ env.KEYMASTER_CLIENT_ID }} @@ -240,7 +240,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Write Build Configuration File - uses: DamianReeves/write-file-action@v1.0 + uses: DamianReeves/write-file-action@v1.3 with: path: ./src/client_id.txt contents: ${{ env.KEYMASTER_CLIENT_ID }}