Skip to content

ci: add win ci (#39) #31

ci: add win ci (#39)

ci: add win ci (#39) #31

Workflow file for this run

name: build
on:
push:
paths-ignore:
- 'doc/**'
- 'README.md'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Install dependencies
run: |
sudo apt install -y librime-dev
- name: Lint
run: cargo clippy -- -D warnings
- name: Build
run: |
cargo build --release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- uses: MinoruSekine/[email protected]
with:
buckets: extras
- name: Install dependencies
shell: bash
run: |
set -eux -o pipefail
scoop install wget
wget https://github.com/rime/librime/releases/download/1.11.2/rime-5b09f35-Windows-msvc-x64.7z -O rime.7z
7z x rime.7z
LIBRIME_INCLUDE_DIR=$PWD/dist/include LIBRIME_LIB_DIR=$PWD/dist/lib LIB=$PWD/dist/lib cargo build --release