Skip to content

Commit

Permalink
ci: try to build?
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-Hash committed Jan 21, 2025
1 parent 98af60f commit a2034fe
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 24 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
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} }}
109 changes: 86 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "GPL-3.0-or-later"
crate-type = ["cdylib"]

[dependencies]
icu_segmenter = { version = "1.5.0", optional = true }
icu_segmenter = { version = "2.0.0-beta1", optional = true }
libc = "0.2.169"
windows = { version = "0.59.0", features = [
"Data_Text",
Expand Down

0 comments on commit a2034fe

Please sign in to comment.