-
Notifications
You must be signed in to change notification settings - Fork 83
55 lines (49 loc) · 1.28 KB
/
ci-build.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
name: ci-build
on:
push:
branches:
- master
- develop
pull_request:
branches:
- '**'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: [self-hosted, normal]
steps:
- name: Check to latest commit
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-22
components: rustfmt,clippy
target: wasm32-unknown-unknown
override: true
default: true
- name: Check All
run: make check-all
- name: Cargo clippy
run: |
make clippy
- name: Test All
run: |
make test-all
- name: Inform buddies online
uses: 8398a7/action-slack@v3
if: always() && (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
with:
status: ${{ job.status }}
fields: repo,author,eventName,workflow,ref,commit
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PULLREQUEST_WEBHOOK_URL }}
- name: clean runner workspace
run: |
rm -r *