From de40e6906a97e2979f6253b3650b486eb1f56b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Postula?= Date: Tue, 2 Apr 2024 21:11:02 +0200 Subject: [PATCH] chore: hook ci (#58) --- .github/workflows/release.yml | 22 ++++++++++++++ .github/workflows/rust.yml | 57 ----------------------------------- README.md | 7 ++--- 3 files changed, 25 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..847a2b4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release Pipeline + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + inputs: + publish: + type: boolean + required: false + description: Trigger with publish + +jobs: + publish: + uses: ForesightMiningSoftwareCorporation/github/.github/workflows/rust-build.yml@v1 + with: + publish: ${{ (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish)) && 'true' || 'false' }} + publish_public_registry: true + toolchain: "1.70" + secrets: inherit diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index a51e2e4..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,57 +0,0 @@ -on: - pull_request: - push: - branches: - - main - -name: CI - -jobs: - ci: - name: CI - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Update Packages - run: sudo apt-get update -yq - - - name: Install dependencies - run: sudo apt-get install -yq --no-install-recommends libudev-dev libasound2-dev libxcb-composite0-dev - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - - name: Cache Dependencies - uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 - - - name: Install fmt - run: rustup component add rustfmt - - - name: fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - - name: check - uses: actions-rs/cargo@v1 - with: - command: check - - - name: Install clippy - run: rustup component add clippy - - - name: run clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings - - - name: test - uses: actions-rs/cargo@v1 - with: - command: test diff --git a/README.md b/README.md index dea3267..1f86322 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ https://user-images.githubusercontent.com/2632925/227469248-726b21c8-5308-49f0-9 [![crates.io](https://img.shields.io/crates/v/bevy_transform_gizmo)](https://crates.io/crates/bevy_transform_gizmo) [![docs.rs](https://docs.rs/bevy_transform_gizmo/badge.svg)](https://docs.rs/bevy_transform_gizmo) -[![CI](https://github.com/ForesightMiningSoftwareCorporation/bevy_transform_gizmo/workflows/CI/badge.svg?branch=main)](https://github.com/ForesightMiningSoftwareCorporation/bevy_transform_gizmo/actions?query=workflow%3A%22CI%22+branch%3Amain) +[![CI-CD](https://github.com/ForesightMiningSoftwareCorporation/bevy_transform_gizmo/actions/workflows/release.yml/badge.svg)](https://github.com/ForesightMiningSoftwareCorporation/bevy_transform_gizmo/actions/workflows/release.yml) [![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-main-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) @@ -47,7 +47,6 @@ at your option. This means you can select the license you prefer! This dual-lice Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. ## Sponsors -The creation and maintenance of Bevy Transform Gizmo is sponsored by Foresight Mining Software Corporation. - -Foresight Mining Software Corporation +The creation and maintenance of Bevy Transform Gizmo is sponsored by Foresight Spatial Labs. +Foresight Spatial Labs