From 7b7e495fc069b36dab52cfbd38cfb4ff4695aaac Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Wed, 20 Aug 2025 13:27:00 -0500 Subject: [PATCH] ci: add separate MUSL linux build, disable sccache on GNU linux only --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 983c7c7..05ab521 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,16 +19,24 @@ jobs: - os: ubuntu-22.04 target: x86_64-unknown-linux-gnu artifact_name: byte-me-linux-x86_64 + use_sccache: false + - os: ubuntu-22.04 + target: x86_64-unknown-linux-musl + artifact_name: byte-me-linux-x86_64-musl + use_sccache: true - os: windows-latest target: x86_64-pc-windows-msvc artifact_name: byte-me-windows-x86_64 artifact_extension: .exe + use_sccache: true - os: macos-latest target: aarch64-apple-darwin artifact_name: byte-me-macos-aarch64 + use_sccache: true - os: macos-latest target: x86_64-apple-darwin artifact_name: byte-me-macos-x86_64 + use_sccache: true steps: - name: Checkout @@ -41,11 +49,11 @@ jobs: targets: ${{ matrix.target }} - name: Use sccache - if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' + if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' && matrix.use_sccache uses: mozilla-actions/sccache-action@v0.0.9 - name: Configure sccache - if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' + if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' && matrix.use_sccache run: | # Enable GitHub Actions for cache storage echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV @@ -100,7 +108,8 @@ jobs: libwebkit2gtk-4.1-dev \ libayatana-appindicator3-dev \ librsvg2-dev \ - patchelf + patchelf \ + musl-tools - name: Generate frontend bindings run: pnpm run generate-types