-
Notifications
You must be signed in to change notification settings - Fork 29
51 lines (51 loc) · 1.33 KB
/
Others.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
name: Others
on:
push:
tags:
- 'test-ci'
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
platform: [scalable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-03-24
override: true
components: rustfmt
#- name: check fmt
# shell: bash
# run: |
# cargo fmt -- --check
# - name: get env
# env:
# DBG: true
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# shell: bash
# run: |
# PR=$(echo ${GITHUB_REF} | cut -d "/" -f 3)
# BRANCH="${GITHUB_HEAD_REF}"
# TOBRANCH="${GITHUB_BASE_REF}"
# REF=${GITHUB_REF}
# COMMIT_HASH=$(echo ${GITHUB_CONTEXT} | jq '.event.pull_request.head.sha')
# if [ "${COMMIT_HASH}" == "null" ]; then
# COMMIT_HASH="${GITHUB_SHA::7}"
# else
# COMMIT_HASH=${COMMIT_HASH:1:7}
# fi
# echo "GITHUB_SHA: ${GITHUB_SHA}"
# echo "PR: ${PR}"
# echo "BRANCH: ${BRANCH}"
# echo "TOBRANCH: ${TOBRANCH}"
# echo "REF: ${REF}"
# echo "TOBRANCH: ${TOBRANCH}"
# echo "COMMIT_HASH: ${COMMIT_HASH}"
- name: Clean garbage
shell: bash
run: |
rm -rf /tmp/*>/dev/null 2>&1 || true