-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.3 KB
/
test.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
name: Test
on:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: setup toolchain
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- name: dependencies
run: |
uname -a &&
sudo apt-get -y update &&
sudo apt-get -y upgrade &&
sudo apt-get -y install gcc clang openssl libicu-dev libgraphite2-dev \
libcairo-5c-dev libcairo-gobject2 \
libpango1.0-dev libpoppler-dev libpoppler-glib-dev \
gcc bison flex libtool autoconf automake gcc \
libngspice0-dev kicad-symbols && \
sudo mkdir -p /usr/local/share/fonts/TT/ && \
sudo curl -L "https://github.com/hikikomori82/osifont/blob/master/osifont-lgpl3fe.ttf?raw=true" \
-o /usr/local/share/fonts/TT/osifont-lgpl3fe.ttf
- name: cargo test
run: cargo test --workspace
# - name: rustfmt
# run: cargo fmt --all -- --check
#
# - name: clippy
# run: cargo clippy --all --all-features --tests -- -D warnings