Attempt to install ROCm packages #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
env: | |
TYPOS_LINK: "https://github.com/crate-ci/typos/releases/download" | |
TYPOS_VERSION: "1.23.4" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
checks: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Setup Rust | |
uses: tracel-ai/github-actions/setup-rust@v1 | |
with: | |
rust-toolchain: stable | |
cache-key: stable-linux | |
# -------------------------------------------------------------------------------- | |
- name: Install ROCm Packages | |
shell: bash | |
run: | | |
sudo apt update | |
wget https://repo.radeon.com/amdgpu-install/6.2.2/ubuntu/noble/amdgpu-install_6.2.60202-1_all.deb | |
sudo apt install ./amdgpu-install_6.2.60202-1_all.deb | |
sudo amdgpu-install --usecase=rocm | |
ls -all /opt | |
ls -all /opt/rocm/include | |
ls -all /opt/rocm/include/hip | |
ls -all /opt/rocm/lib | |
# -------------------------------------------------------------------------------- | |
- name: Audit | |
run: cargo xtask check audit | |
# -------------------------------------------------------------------------------- | |
- name: Format | |
shell: bash | |
env: | |
# work around for colors | |
# see: https://github.com/rust-lang/rustfmt/issues/3385 | |
TERM: xterm-256color | |
run: cargo xtask check format | |
# -------------------------------------------------------------------------------- | |
- name: Lint | |
run: cargo xtask check lint | |
# -------------------------------------------------------------------------------- | |
- name: Typos | |
uses: tracel-ai/github-actions/check-typos@v1 | |
# -------------------------------------------------------------------------------- | |
- name: Unit Tests | |
run: cargo xtask test unit | |
# -------------------------------------------------------------------------------- | |
- name: Integration Tests | |
run: cargo xtask test integration | |
# -------------------------------------------------------------------------------- | |
- name: Documentation Tests | |
run: cargo xtask doc tests | |