use grapheme clusters instead of chars #98
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all-features | |
deploy-bin-windows-i686: | |
needs: check | |
runs-on: windows-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: i686-pc-windows-msvc | |
toolchain: stable | |
- name: Build divvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --bin divvunspell --release --target i686-pc-windows-msvc | |
deploy-bin-windows-x86_64: | |
needs: check | |
runs-on: windows-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: x86_64-pc-windows-msvc | |
toolchain: stable | |
- name: Build divvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --bin divvunspell --release --target x86_64-pc-windows-msvc | |
deploy-bin-macos-aarch64: | |
needs: check | |
runs-on: macos-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Questionable workarounds for a questionable OS | |
run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: aarch64-apple-darwin | |
toolchain: stable | |
- name: Build divvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --bin divvunspell --release --target aarch64-apple-darwin | |
deploy-bin-macos-x86_64: | |
needs: check | |
runs-on: macos-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: x86_64-apple-darwin | |
toolchain: stable | |
- name: Build divvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --bin divvunspell --release --target x86_64-apple-darwin | |
deploy-lib-windows-x86_64: | |
needs: check | |
runs-on: windows-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: x86_64-pc-windows-msvc | |
toolchain: stable | |
- name: Build libdivvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --lib --release --features compression,internal_ffi --target x86_64-pc-windows-msvc | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lib-windows-x86_64 | |
path: | | |
target/x86_64-pc-windows-msvc/release/divvunspell.dll | |
deploy-lib-windows-i686: | |
needs: check | |
runs-on: windows-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: i686-pc-windows-msvc | |
toolchain: stable | |
- name: Build libdivvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --lib --release --features compression,internal_ffi --target i686-pc-windows-msvc | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lib-windows-i686 | |
path: | | |
target/i686-pc-windows-msvc/release/divvunspell.dll | |
deploy-lib-ios-aarch64: | |
needs: check | |
runs-on: macos-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: aarch64-apple-ios | |
toolchain: stable | |
- name: Build libdivvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --lib --release --features internal_ffi --target aarch64-apple-ios | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lib-ios-aarch64 | |
path: | | |
target/aarch64-apple-ios | |
deploy-lib-ios-x86_64: | |
needs: check | |
runs-on: macos-latest | |
env: | |
LZMA_API_STATIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: x86_64-apple-ios | |
toolchain: stable | |
- name: Build libdivvunspell | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --lib --release --features internal_ffi --target x86_64-apple-ios | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lib-ios-x86_64 | |
path: | | |
target/x86_64-apple-ios |