Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update anchor to v0.29.0 #268

Merged
merged 7 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading