ci: add separate MUSL linux build, disable sccache on GNU linux only

This commit is contained in:
Ryan Walters
2025-08-20 13:27:00 -05:00
parent 8c897209ae
commit 7b7e495fc0

View File

@@ -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