-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (41 loc) · 1.09 KB
/
build_and_tests.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
on:
pull_request:
push:
branches:
- main
paths-ignore:
- README.md
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Clippy, fmt and tests
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
target: wasm32-unknown-unknown, i686-unknown-linux-gnu
- name: Install Just command runner
uses: extractions/setup-just@v1
- name: install ic-wasm
run: |
wget https://github.com/dfinity/ic-wasm/releases/download/0.8.1/ic-wasm-linux64 -O /usr/local/bin/ic-wasm
chmod +x /usr/local/bin/ic-wasm
- name: check rust code style
run: |
just check_code
- name: build
run: |
just build
- name: test
run: |
just test
- name: 32bits test
run: |
sudo apt install gcc-multilib
just test_i686