Skip to content

a lil CI

a lil CI #1

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
buildpackage:
name: Build Package
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout Code

Check failure on line 14 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install ctypeslib
run: |
git clone [email protected]:geohot/ctypeslib.git
cd ctypeslib
pip install .
- name: Install HIP
run: |
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/5.7.1 jammy main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
sudo apt update
sudo apt install rocm-hip-sdk
- name: Generate headers
run: ./generate.sh
- name: Install gpuctypes
run: pip install .
- name: Test gpuctypes
run: python3 -c "import gpuctypes.hip"