-
Notifications
You must be signed in to change notification settings - Fork 98
65 lines (57 loc) · 1.41 KB
/
api-server-rest-basic.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: api-server-rest basic build and unit tests
on:
push:
branches:
- "main"
paths:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
create:
workflow_dispatch:
jobs:
basic_ci:
name: Check
defaults:
run:
working-directory: ./api-server-rest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Install protoc
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Build and install with default features
run: |
make && make install
- name: Musl build with default features
run: |
make LIBC=musl
- name: s390x build
run:
make ARCH=s390x
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: -p api-server-rest