mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
platform:
|
|
# - { target: x86_64-pc-windows-gnu, os: windows-latest }
|
|
- { target: x86_64-pc-windows-msvc, os: windows-latest }
|
|
# - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
|
|
|
|
runs-on: ${{ matrix.platform.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
target: ${{ matrix.platform.target }}
|
|
default: true
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- run: cargo build --features bundled --workspace --all-targets
|
|
- run: cargo test --features bundled --workspace --all-targets
|
|
- run: cargo test --features bundled --workspace --doc
|
|
- name: Static build
|
|
if: matrix.platform.os == 'windows-latest'
|
|
shell: cmd
|
|
run: |
|
|
set RUSTFLAGS=-Ctarget-feature=+crt-static
|
|
cargo build --features bundled
|