Skip to content

Commit

Permalink
CI fixes (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Feb 6, 2024
1 parent e4a8854 commit bfe8cd8
Show file tree
Hide file tree
Showing 14 changed files with 290 additions and 419 deletions.
51 changes: 0 additions & 51 deletions .github/actions/setup-rust/action.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/build.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Geyser CI

on:
push:
branches:
- master
- 'v*.*'
tags:
- 'v*.*.*'
pull_request:
branches:
- master
- 'v*.*'

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- name: Install cargo-sort from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-sort
version: "1.0.9"
- name: Cargo sort
run: cargo sort --workspace --check
- name: run clippy
run: cargo clippy --all-features -- -D clippy::all

build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo build --release

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features --all-targets

release:
name: release
runs-on: ubuntu-latest
needs: [build, test, lint]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo build --release
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./target/release/libgeyser_grpc_plugin_server.so
25 changes: 0 additions & 25 deletions .github/workflows/clean_code.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/master.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/pr.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/push_artifacts.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/release.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/test.yaml

This file was deleted.

Loading

0 comments on commit bfe8cd8

Please sign in to comment.