-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98af60f
commit a2034fe
Showing
3 changed files
with
143 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) | ||
runs-on: ${{ matrix.job.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
job: | ||
- { target: x86_64-pc-windows-gnu, os: windows-2025 } | ||
- { target: x86_64-pc-windows-gnu, os: windows-2025, winrt: true } | ||
- { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04 } | ||
- { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm } | ||
- { target: x86_64-apple-darwin, os: macos-15 } | ||
- { target: aarch64-apple-darwin, os: macos-15 } | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Show version information (Rust, cargo) | ||
run: | | ||
rustup -V | ||
rustup toolchain list | ||
rustup target add ${{ matrix.job.target }} | ||
cargo -V | ||
rustc -V | ||
- name: Build | ||
if: matrix.job.winrt != 'true' | ||
run: cargo build --locked --release --target=${{ matrix.job.target }} | ||
|
||
- name: Build WinRT | ||
if: matrix.job.winrt | ||
run: cargo build --locked --release --target=${{ matrix.job.target }} --no-default-features -F windows | ||
|
||
- name: "Artifact upload" | ||
if: matrix.job.winrt != 'true' | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ matrix.job.target }}-libEMT-icu | ||
path: ${{ target/${{ matrix.job.target }}/release/build/*.{dll,so,dylib} }} | ||
|
||
- name: "Artifact upload WinRT" | ||
if: matrix.job.winrt | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ matrix.job.target }}-libEMT-winrt | ||
path: ${{ target/${{ matrix.job.target }}/release/build/*.{dll,so,dylib} }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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