Skip to content

Commit

Permalink
ci: add ubuntu-22 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Jun 29, 2023
1 parent ef9c079 commit 53abdd9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ env:

jobs:
release:
runs-on: [ubuntu-20.04]
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -41,8 +44,8 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
yellowstone-grpc/target/
key: cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
target
key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001

- name: Check Solana version
run: |
Expand All @@ -59,6 +62,14 @@ jobs:
- name: Build release tarball
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
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
Expand All @@ -69,7 +80,7 @@ jobs:
solana ${{ env.SOLANA_VERSION }}
rust ${{ env.RUST_STABLE }}
files: |
${{ env.GEYSER_PLUGIN_NAME }}-release-*
${{ env.GEYSER_PLUGIN_NAME }}-release*
yellowstone-grpc-proto/proto/*.proto
target/release/client
target/release/config-check
target/release/client*
target/release/config-check*
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ env:

jobs:
test:
runs-on: [ubuntu-20.04]
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -37,8 +40,8 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
yellowstone-grpc/target/
key: cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
target
key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001

- name: cargo tree
run: |
Expand Down
2 changes: 1 addition & 1 deletion ci/env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
plugin_name=yellowstone-grpc-geyser-release
plugin_name=yellowstone-grpc-geyser
plugin_lib_name=yellowstone_grpc_geyser

0 comments on commit 53abdd9

Please sign in to comment.