Skip to content

v1.0.4: Switch to glibc for NVIDIA GPU dlopen compatibility #5

v1.0.4: Switch to glibc for NVIDIA GPU dlopen compatibility

v1.0.4: Switch to glibc for NVIDIA GPU dlopen compatibility #5

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: aarch64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cross
run: |
curl -sSfL https://github.com/cross-rs/cross/releases/latest/download/cross-x86_64-unknown-linux-gnu.tar.gz \
| tar xz -C /usr/local/bin
- name: Build
working-directory: ktop-rs
run: cross build --release --target ${{ matrix.target }}
- name: Package binary
run: |
cp ktop-rs/target/${{ matrix.target }}/release/ktop ktop-${{ matrix.target }}
chmod +x ktop-${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ktop-${{ matrix.target }}
path: ktop-${{ matrix.target }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: ktop-*
generate_release_notes: true