-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: target to use for cross build and bump version to 0.12.4-rc3 #885
Changes from all commits
828afa7
652b1df
99b0027
bb7b7f0
7d9ba63
15c7fef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,35 +41,39 @@ jobs: | |
platform: win32 | ||
arch: x64 | ||
regular_build: 'true' | ||
cross: false | ||
- os: windows-latest | ||
rust-target: aarch64-pc-windows-msvc | ||
platform: win32 | ||
arch: arm64 | ||
cross: false | ||
- os: ubuntu-20.04 | ||
rust-target: x86_64-unknown-linux-gnu | ||
rust-target: x86_64-unknown-linux-musl | ||
platform: linux | ||
arch: x64 | ||
regular_build: 'true' | ||
cross: true | ||
- os: ubuntu-20.04 | ||
rust-target: aarch64-unknown-linux-gnu | ||
rust-target: aarch64-unknown-linux-musl | ||
platform: linux | ||
arch: arm64 | ||
cross: true | ||
- os: ubuntu-20.04 | ||
rust-target: arm-unknown-linux-gnueabihf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure about this. i dont know the difference between arm targets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We ran into some errors in #884. After diff typst CI scripting with ours, I guessed we should change targets supported by cross. |
||
rust-target: armv7-unknown-linux-musleabi | ||
platform: linux | ||
arch: armhf | ||
arch: armv7 | ||
cross: true | ||
- os: macos-13 | ||
rust-target: x86_64-apple-darwin | ||
platform: darwin | ||
arch: x64 | ||
cross: false | ||
- os: macos-13 | ||
rust-target: aarch64-apple-darwin | ||
platform: darwin | ||
arch: arm64 | ||
regular_build: 'true' | ||
cross: false | ||
name: build (${{ matrix.platform }}-${{ matrix.arch }}) | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
|
@@ -112,6 +116,11 @@ jobs: | |
with: | ||
targets: ${{ matrix.rust-target }} | ||
if: (fromJson(env.isRelease) || fromJson(env.isNightly)) | ||
- name: Install llvm and musl | ||
if: matrix.platform == 'linux' && (fromJson(env.isRelease) || fromJson(env.isNightly)) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install llvm musl-dev | ||
- name: Run rust-cache | ||
uses: Swatinem/rust-cache@v2 | ||
if: (fromJson(env.isRelease) || fromJson(env.isNightly)) | ||
|
@@ -149,10 +158,14 @@ jobs: | |
cp "target/${{ matrix.rust-target }}/gh-release/tinymist$(If ('${{ matrix.platform }}' -eq 'win32') { '.exe' } else { '' } )" "editors/vscode/out/" | ||
cp "target/${{ matrix.rust-target }}/gh-release/tinymist$(If ('${{ matrix.platform }}' -eq 'win32') { '.exe' } else { '' } )" "contrib/typst-preview/editors/vscode/out/" | ||
cp "target/${{ matrix.rust-target }}/gh-release/tinymist$(If ('${{ matrix.platform }}' -eq 'win32') { '.exe' } else { '' } )" "tinymist-${{ env.target }}$(If ('${{ matrix.platform }}' -eq 'win32') { '.exe' } else { '' } )" | ||
- name: Test tinymist | ||
run: | | ||
cross test --profile=gh-release --workspace --target ${{ matrix.rust-target }} --features vendor-openssl | ||
if: matrix.cross && (fromJson(env.isRelease) || fromJson(env.isNightly)) && (matrix.platform == 'linux') && (matrix.arch == 'x64') | ||
- name: Test tinymist | ||
run: | | ||
cargo test --profile=gh-release --workspace --target ${{ matrix.rust-target }} | ||
if: (fromJson(env.isRelease) || fromJson(env.isNightly)) && (matrix.platform == 'linux') && (matrix.arch == 'x64') | ||
if: "!matrix.cross && (fromJson(env.isRelease) || fromJson(env.isNightly)) && (matrix.platform == 'linux') && (matrix.arch == 'x64')" | ||
- name: Upload split debug symbols for windows | ||
if: matrix.platform == 'win32' && (fromJson(env.isRelease) || fromJson(env.isNightly)) | ||
uses: actions/upload-artifact@v4 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can help with rhel. but i heard that some libc function in musl is inefficient. we can observe if there is any slow down after changing this.