-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the moment, it appears that musl targets are not working: rust-windowing/winit#1818 To use gnu, it's necessary to use glib 2.27, for that, cross need to be installed manually from development branch: cross-rs/cross#1510 --------- Signed-off-by: Patrick José Pereira <[email protected]>
- Loading branch information
1 parent
815288b
commit 7fc79c0
Showing
1 changed file
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,17 +114,14 @@ jobs: | |
- os: macos-latest | ||
TARGET: aarch64-apple-darwin | ||
|
||
- os: macos-latest | ||
TARGET: x86_64-apple-darwin | ||
|
||
- os: ubuntu-latest | ||
TARGET: arm-unknown-linux-musleabihf | ||
TARGET: aarch64-unknown-linux-gnu | ||
|
||
- os: ubuntu-latest | ||
TARGET: armv7-unknown-linux-musleabihf | ||
TARGET: armv7-unknown-linux-gnueabihf | ||
|
||
- os: ubuntu-latest | ||
TARGET: x86_64-unknown-linux-musl | ||
TARGET: x86_64-unknown-linux-gnu | ||
|
||
- os: windows-latest | ||
TARGET: x86_64-pc-windows-msvc | ||
|
@@ -135,17 +132,26 @@ jobs: | |
run: echo "${{ matrix.TARGET }}" | ||
|
||
- uses: actions/checkout@master | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.TARGET }} | ||
override: true | ||
|
||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: build | ||
args: --verbose --release --target=${{ matrix.TARGET }} | ||
- name: Install build dependencies - Rustup | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --profile default --target ${{ matrix.TARGET }} -y | ||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
# For linux, it's necessary to use cross from the git repository to avoid glibc problems | ||
# Ref: https://github.com/cross-rs/cross/issues/1510 | ||
- name: Install cross for linux | ||
if: contains(matrix.TARGET, 'linux') | ||
run: | | ||
cargo install cross --git https://github.com/cross-rs/cross --rev 1b8cf50d20180c1a394099e608141480f934b7f7 | ||
- name: Install cross for mac and windows | ||
if: ${{ !contains(matrix.TARGET, 'linux') }} | ||
run: | | ||
cargo install cross | ||
- name: Build | ||
run: | | ||
cross build --verbose --release --target=${{ matrix.TARGET }} | ||
- name: Rename | ||
run: cp target/${{ matrix.TARGET }}/release/eframe_template${{ matrix.EXTENSION }} eframe_template-${{ matrix.TARGET }}${{ matrix.EXTENSION }} | ||
|