-
Notifications
You must be signed in to change notification settings - Fork 76
59 lines (56 loc) · 1.79 KB
/
code-scan.yaml
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
name: Code scan
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
container: backpackapp/build:v0.29.0
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install default toolchain
run: rustup default stable
- uses: Swatinem/[email protected]
- name: Build
run: cargo build --locked
# audit:
# needs: build
# name: Audit ${{ matrix.node.path }}
# runs-on: ubuntu-latest
# container: backpackapp/build:v0.29.0
# strategy:
# fail-fast: false
# matrix:
# node:
# - cmd: export PATH=$PWD/soteria-linux-develop/bin:$PATH && cd programs/network && soteria -analyzeAll .
# path: programs/network
# - cmd: export PATH=$PWD/soteria-linux-develop/bin:$PATH && cd programs/thread && soteria -analyzeAll .
# path: programs/thread
# - cmd: export PATH=$PWD/soteria-linux-develop/bin:$PATH && cd programs/webhook && soteria -analyzeAll .
# path: programs/webhook
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Install BPF toolchain
# run: |
# rustup default stable
# cd /root/.local/share/solana/install/active_release/bin/sdk/bpf
# rm -rf dependencies/*
# ./scripts/install.sh
# rustup default bpf
# cd $GITHUB_WORKSPACE
# cargo update
# - name: Install Soteria auditor
# run : |
# sh -c "$(curl -k https://supercompiler.xyz/install)"
# export PATH=$PWD/soteria-linux-develop/bin:$PATH
# - name: Run soteria on ${{ matrix.node.path }}
# run: ${{ matrix.node.cmd }}