-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (49 loc) · 1.67 KB
/
soteria.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
56
57
name: Soteria Scan
on:
push:
branches: [master, v*.*]
pull_request:
branches: [master, v*.*]
env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: "1.9.5"
jobs:
build:
name: Soteria
runs-on: ubuntu-latest
steps:
- name: Check-out repo
uses: actions/checkout@v3
- name: Cache Solana binaries
uses: actions/cache@v3
id: solana-cache
with:
path: |
~/.cache/solana
~/.local/share/solana
~/.rustup
key: solana-${{ env.SOLANA_VERSION }}
- name: Cache build dependencies
uses: Swatinem/rust-cache@v1
with:
target-dir: .coderrect/build
- name: Install Solana
if: steps.solana-cache.outputs.cache-hit != 'true'
run: |
echo Installing Solana v${{ env.SOLANA_VERSION }}...
sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_VERSION }}/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
echo Installing bpf toolchain...
(cd /home/runner/.local/share/solana/install/active_release/bin/sdk/bpf/scripts; ./install.sh)
shell: bash
- name: Install Soteria
run: |
echo Installing Soteria...
sh -c "$(curl -k https://supercompiler.xyz/install)"
export PATH=$PWD/soteria-linux-develop/bin/:$PATH
echo "$PWD/soteria-linux-develop/bin" >> $GITHUB_PATH
shell: bash
- name: Run Soteria # Not failing for the time being
run: soteria -analyzeAll . || exit 0
shell: bash