mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-07 09:14:37 -06:00
ci: add separate MUSL linux build, disable sccache on GNU linux only
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -19,16 +19,24 @@ jobs:
|
|||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
artifact_name: byte-me-linux-x86_64
|
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
|
- os: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
artifact_name: byte-me-windows-x86_64
|
artifact_name: byte-me-windows-x86_64
|
||||||
artifact_extension: .exe
|
artifact_extension: .exe
|
||||||
|
use_sccache: true
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
artifact_name: byte-me-macos-aarch64
|
artifact_name: byte-me-macos-aarch64
|
||||||
|
use_sccache: true
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
artifact_name: byte-me-macos-x86_64
|
artifact_name: byte-me-macos-x86_64
|
||||||
|
use_sccache: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -41,11 +49,11 @@ jobs:
|
|||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Use sccache
|
- 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
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
|
|
||||||
- name: Configure sccache
|
- 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: |
|
run: |
|
||||||
# Enable GitHub Actions for cache storage
|
# Enable GitHub Actions for cache storage
|
||||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||||
@@ -100,7 +108,8 @@ jobs:
|
|||||||
libwebkit2gtk-4.1-dev \
|
libwebkit2gtk-4.1-dev \
|
||||||
libayatana-appindicator3-dev \
|
libayatana-appindicator3-dev \
|
||||||
librsvg2-dev \
|
librsvg2-dev \
|
||||||
patchelf
|
patchelf \
|
||||||
|
musl-tools
|
||||||
|
|
||||||
- name: Generate frontend bindings
|
- name: Generate frontend bindings
|
||||||
run: pnpm run generate-types
|
run: pnpm run generate-types
|
||||||
|
|||||||
Reference in New Issue
Block a user