Skip to content

Commit e03ee91

Browse files
authored
Merge pull request #513 from matrix-org/jplatte/xtask
2 parents ea5478c + 2182ebd commit e03ee91

File tree

10 files changed

+423
-313
lines changed

10 files changed

+423
-313
lines changed

.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[alias]
2+
xtask = "run --package xtask --"
3+
14
[doc.extern-map.registries]
25
crates-io = "https://docs.rs/"

.github/workflows/appservice.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Appservice
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test-appservice:
14+
name: ${{ matrix.name }}
15+
16+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
name:
21+
- linux / appservice / stable / warp
22+
- macOS / appservice / stable / warp
23+
24+
include:
25+
- name: linux / appservice / stable / warp
26+
cargo_args: --features warp
27+
28+
- name: macOS / appservice / stable / warp
29+
os: macOS-latest
30+
cargo_args: --features warp
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v1
35+
36+
- name: Install Rust
37+
uses: actions-rs/toolchain@v1
38+
with:
39+
toolchain: ${{ matrix.rust || 'stable' }}
40+
target: ${{ matrix.target }}
41+
profile: minimal
42+
override: true
43+
44+
- name: Load cache
45+
uses: Swatinem/rust-cache@v1
46+
47+
- name: Clippy
48+
uses: actions-rs/cargo@v1
49+
with:
50+
command: clippy
51+
args: --manifest-path crates/matrix-sdk-appservice/Cargo.toml ${{ matrix.cargo_args }} -- -D warnings
52+
53+
- name: Build
54+
uses: actions-rs/cargo@v1
55+
with:
56+
command: build
57+
args: --manifest-path crates/matrix-sdk-appservice/Cargo.toml ${{ matrix.cargo_args }}
58+
59+
- name: Test
60+
uses: actions-rs/cargo@v1
61+
with:
62+
command: test
63+
args: --manifest-path crates/matrix-sdk-appservice/Cargo.toml ${{ matrix.cargo_args }}

0 commit comments

Comments
 (0)