Skip to content

Commit

Permalink
Fix Linux cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
quietvoid committed Jan 30, 2023
1 parent 2db1325 commit 893d683
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 179 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [macOS, Windows]
build: [Linux, macOS, Windows]
include:
- build: Linux
os: ubuntu-latest
- build: macOS
os: macos-latest
- build: Windows
Expand All @@ -40,13 +42,13 @@ jobs:
if: matrix.build == 'Linux'
run: |
sudo apt-get update -y
sudo apt-get install musl-tools libfontconfig1-dev -y
sudo apt-get install musl-tools -y
- name: Build (Linux)
if: matrix.build == 'Linux'
run: |
rustup target add ${{ env.LINUX_TARGET }}
cargo build --release --target ${{ env.LINUX_TARGET }}
cargo build --release --target ${{ env.LINUX_TARGET }} --no-default-features --features internal-font
- name: Build (macOS)
if: matrix.build == 'macOS'
Expand Down
Loading

0 comments on commit 893d683

Please sign in to comment.