ci: add ubuntu-22 (#153)

This commit is contained in:
Kirill Fomichev 2023-06-29 16:02:17 -04:00 committed by GitHub
parent ef9c079f07
commit 53abdd9bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 10 deletions

View File

@ -12,7 +12,10 @@ env:
jobs: jobs:
release: release:
runs-on: [ubuntu-20.04] strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -41,8 +44,8 @@ jobs:
~/.cargo/registry/index/ ~/.cargo/registry/index/
~/.cargo/registry/cache/ ~/.cargo/registry/cache/
~/.cargo/git/db/ ~/.cargo/git/db/
yellowstone-grpc/target/ target
key: cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001 key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
- name: Check Solana version - name: Check Solana version
run: | run: |
@ -59,6 +62,14 @@ jobs:
- name: Build release tarball - name: Build release tarball
run: ./ci/create-tarball.sh run: ./ci/create-tarball.sh
- name: rename binaries for ubuntu22 release
if: matrix.os == 'ubuntu-22.04'
run: |
mv target/release/client target/release/client22
mv target/release/config-check target/release/config-check22
mv ${{ env.GEYSER_PLUGIN_NAME }}-release-x86_64-unknown-linux-gnu.tar.bz2 ${{ env.GEYSER_PLUGIN_NAME }}-release22-x86_64-unknown-linux-gnu.tar.bz2
mv ${{ env.GEYSER_PLUGIN_NAME }}-release-x86_64-unknown-linux-gnu.yml ${{ env.GEYSER_PLUGIN_NAME }}-release22-x86_64-unknown-linux-gnu.yml
- name: Release - name: Release
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
@ -69,7 +80,7 @@ jobs:
solana ${{ env.SOLANA_VERSION }} solana ${{ env.SOLANA_VERSION }}
rust ${{ env.RUST_STABLE }} rust ${{ env.RUST_STABLE }}
files: | files: |
${{ env.GEYSER_PLUGIN_NAME }}-release-* ${{ env.GEYSER_PLUGIN_NAME }}-release*
yellowstone-grpc-proto/proto/*.proto yellowstone-grpc-proto/proto/*.proto
target/release/client target/release/client*
target/release/config-check target/release/config-check*

View File

@ -8,7 +8,10 @@ env:
jobs: jobs:
test: test:
runs-on: [ubuntu-20.04] strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -37,8 +40,8 @@ jobs:
~/.cargo/registry/index/ ~/.cargo/registry/index/
~/.cargo/registry/cache/ ~/.cargo/registry/cache/
~/.cargo/git/db/ ~/.cargo/git/db/
yellowstone-grpc/target/ target
key: cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001 key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
- name: cargo tree - name: cargo tree
run: | run: |

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
plugin_name=yellowstone-grpc-geyser-release plugin_name=yellowstone-grpc-geyser
plugin_lib_name=yellowstone_grpc_geyser plugin_lib_name=yellowstone_grpc_geyser