forked from nickelc/modio-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1021 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
build:
- default
- bundled
- musl
include:
- build: default
packages: libsqlite3-dev
- build: bundled
features: --features sqlite-bundled
- build: musl
features: --features sqlite-bundled
target: x86_64-unknown-linux-musl
packages: musl-tools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install packages
if: matrix.packages
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.packages }}
- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build --target ${{ matrix.target || 'x86_64-unknown-linux-gnu' }} ${{ matrix.features }}