Skip to content

Commit

Permalink
Update rust to 1.60, solana to 1.11.6 (#3492)
Browse files Browse the repository at this point in the history
also change bpf to sbf throughout the codebase

Co-authored-by: Jon Cinque <[email protected]>
  • Loading branch information
2501babe and joncinque authored Aug 18, 2022
1 parent 6e125f8 commit 65769ce
Show file tree
Hide file tree
Showing 182 changed files with 955 additions and 1,061 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-binary-oracle-pair.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -57,4 +57,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh binary-oracle-pair
run: ./ci/cargo-test-sbf.sh binary-oracle-pair
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,4 +55,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh examples/rust
run: ./ci/cargo-test-sbf.sh examples/rust
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-feature-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -57,4 +57,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh feature-proposal
run: ./ci/cargo-test-sbf.sh feature-proposal
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -57,4 +57,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh governance
run: ./ci/cargo-test-sbf.sh governance
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,4 +55,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh libraries
run: ./ci/cargo-test-sbf.sh libraries
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-memo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,7 +55,7 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh memo
run: ./ci/cargo-test-sbf.sh memo

js-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-name-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,7 +55,7 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh name-service
run: ./ci/cargo-test-sbf.sh name-service

js-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,4 +55,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh record
run: ./ci/cargo-test-sbf.sh record
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-shared-memory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -55,4 +55,4 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh shared-memory
run: ./ci/cargo-test-sbf.sh shared-memory
10 changes: 5 additions & 5 deletions .github/workflows/pull-request-stake-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -57,7 +57,7 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh stake-pool
run: ./ci/cargo-test-sbf.sh stake-pool

- name: Upload programs
uses: actions/upload-artifact@v2
Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.x
needs: cargo-test-bpf
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
Expand All @@ -92,7 +92,7 @@ jobs:

py-test:
runs-on: ubuntu-latest
needs: cargo-test-bpf
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -57,7 +57,7 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh token-lending
run: ./ci/cargo-test-sbf.sh token-lending

- name: Upload programs
uses: actions/upload-artifact@v2
Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.x
needs: cargo-test-bpf
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pull-request-token-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- 'ci/*-version.sh'

jobs:
cargo-test-bpf:
cargo-test-sbf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v2
with:
Expand All @@ -59,14 +59,14 @@ jobs:
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build and test
run: ./ci/cargo-test-bpf.sh token-swap
run: ./ci/cargo-test-sbf.sh token-swap

- name: Build production version
run: |
cargo +"$RUST_STABLE" build-bpf \
cargo +"$RUST_STABLE" build-sbf \
--manifest-path=token-swap/program/Cargo.toml \
--features production \
--bpf-out-dir target/deploy-production
--sbf-out-dir target/deploy-production
env:
SWAP_PROGRAM_OWNER_FEE_ADDRESS: HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN

Expand All @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.x
needs: cargo-test-bpf
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
Expand Down
Loading

0 comments on commit 65769ce

Please sign in to comment.