Skip to content

Commit ba43bd5

Browse files
author
bgroupe
committed
chore: setup prelim actions
1 parent 11bc93b commit ba43bd5

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build_and_test:
12+
strategy:
13+
matrix:
14+
features:
15+
- embed,sqlite
16+
- embed,sqlite,redis
17+
- embed,postgres
18+
- embed,postgres,redis
19+
- reload,postgres
20+
- reload,sqlite
21+
- reload,sqlite,redis
22+
platform:
23+
# - os-name: FreeBSD-x86_64
24+
# runs-on: ubuntu-24.04
25+
# target: x86_64-unknown-freebsd
26+
27+
- os-name: Linux-x86_64
28+
runs-on: ubuntu-24.04
29+
target: x86_64-unknown-linux-musl
30+
31+
- os-name: Linux-aarch64
32+
runs-on: ubuntu-24.04
33+
target: aarch64-unknown-linux-musl
34+
35+
- os-name: Linux-riscv64
36+
runs-on: ubuntu-24.04
37+
target: riscv64gc-unknown-linux-gnu
38+
39+
# - os-name: Windows-x86_64
40+
# runs-on: windows-latest
41+
# target: x86_64-pc-windows-msvc
42+
43+
- os-name: macOS-x86_64
44+
runs-on: macOS-latest
45+
target: x86_64-apple-darwin
46+
runs-on: ${{matrix.platform.runs-on}}
47+
steps:
48+
- name: checkout
49+
uses: actions/checkout@v2
50+
51+
- name: setup_toolchain
52+
uses: actions-rust-lang/setup-rust-toolchain@v1
53+
54+
- name: setup_qemu
55+
uses: docker/setup-qemu-action@v2
56+
57+
- name: test_binary
58+
uses: houseabsolute/actions-rust-cross@v1
59+
with:
60+
command: test
61+
target: ${{ matrix.target }}
62+
toolchain: stable
63+
args: "--no-default-features --features ${{matrix.features}}"
64+
strip: true

.github/workflows/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: AIP Lint and Fmt
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
lint_and_fmt:
12+
continue-on-error: true
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v2
17+
18+
- name: toolchain_with_cache
19+
uses: actions-rust-lang/setup-rust-toolchain@v1
20+
with:
21+
components: rustfmt,clippy
22+
toolchain: "stable"
23+
cache-shared-key: foobar
24+
25+
- name: rustfmt
26+
uses: actions-rust-lang/rustfmt@v1
27+
28+
- name: lint
29+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)