Skip to content

Commit

Permalink
Update anchor to v0.29.0 (#268)
Browse files Browse the repository at this point in the history
* Update anchor to v0.29.0

* Attempt to fix github workflow

* Update docker deps from projectserum to backpackapp

* Update registry

* Comment out audit workflow because soteria is on old bpf

* plugin build file

* small cleanup
  • Loading branch information
nickgarfield authored Feb 7, 2024
1 parent f87f5f1 commit cdf3466
Show file tree
Hide file tree
Showing 27 changed files with 1,846 additions and 1,248 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bump-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

env:
CARGO_TERM_COLOR: always
ANCHOR_VERSION: v0.27.0
ANCHOR_VERSION: v0.29.0
PUBLISH_PREFIX: clockwork

jobs:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Install Rust ${{ env.PLUGIN_RUST_VERSION }}
uses: ./.github/actions/setup-rust/

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.0
with:
key: tarball-${{ runner.target }}-build-${{ hashFiles('**/Cargo.lock') }}
- name: Build release tarball
Expand Down
70 changes: 35 additions & 35 deletions .github/workflows/code-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,46 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
container: projectserum/build:v0.27.0
container: backpackapp/build:v0.29.0
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install default toolchain
run: rustup default stable
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.0
- name: Build
run: cargo build --locked

audit:
needs: build
name: Audit ${{ matrix.node.path }}
runs-on: ubuntu-latest
container: projectserum/build:v0.27.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 }}
# 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 }}
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ clockwork_thread_program = "CLoCKyJ6DXBJqqu2VWx9RLbgnwwR6BMHHuyasVmfMzBh"
clockwork_webhook_program = "E7p5KFo8kKCDm6BUnWtnVFkQSYh6ZA6xaGAuvpv8NXTa"

[registry]
url = "https://anchor.projectserum.com"
url = "https://api.apr.dev"
Loading

0 comments on commit cdf3466

Please sign in to comment.