Skip to content

Commit

Permalink
add rust release workflow (#35)
Browse files Browse the repository at this point in the history
* rename rust file

* Added deps

Signed-off-by: carlosb1 <mcflurry0@gmail.com>

* Add matrix

Signed-off-by: carlosb1 <mcflurry0@gmail.com>

* Adding multitarget and description

Signed-off-by: carlosb1 <mcflurry0@gmail.com>

* Added archicture wit the toolchain

Signed-off-by: carlosb1 <mcflurry0@gmail.com>

* Added release workflow

Signed-off-by: carlosb1 <mcflurry0@gmail.com>

---------

Signed-off-by: carlosb1 <mcflurry0@gmail.com>
Co-authored-by: Edgar Riba <edgar.riba@gmail.com>
  • Loading branch information
carlosb1 and edgarriba authored Jan 28, 2024
1 parent aa791be commit 5d71594
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Rust Release

on:
workflow_dispatch:
release:
types: [published]

jobs:
release:
name: Release Rust
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- name: Install system dependencies
run: sudo apt-get install -y cmake nasm
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CARGO_REGISTRY_TOKEN_KORNIA }}
- name: Cargo Publish
uses: actions-rs/cargo@v1
with:
command: publish
args: --verbose --target ${{ matrix.target }}

0 comments on commit 5d71594

Please sign in to comment.