Compare commits
6 Commits
test-docu-
...
gitea-test
| Author | SHA1 | Date | |
|---|---|---|---|
| 656ce44fa8 | |||
| cad428c328 | |||
| 7a179005a9 | |||
| eb40e352fb | |||
| d19954bb4c | |||
| 662ccd1fc3 |
@@ -45,13 +45,61 @@ jobs:
|
||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_flags }} ..
|
||||
ninja frontend
|
||||
ninja -j16 package
|
||||
shopt -s nullglob
|
||||
files=( *.rpm *.deb )
|
||||
if (( ${#files[@]} )); then
|
||||
mv "${files[@]}" ..
|
||||
else
|
||||
echo "No packages found to move"
|
||||
- name: Upload packages
|
||||
if: github.ref_type == 'tag'
|
||||
shell: bash
|
||||
run: |
|
||||
cd build
|
||||
if [ "${{ matrix.distro }}" = "rocky8" ]; then
|
||||
for file in *.rpm; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/rpm/centos/el8/cuda12/upload
|
||||
fi
|
||||
done
|
||||
elif [ "${{ matrix.distro }}" = "rocky9" ]; then
|
||||
for file in *.rpm; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/rpm/centos/el9/cuda13/upload
|
||||
fi
|
||||
done
|
||||
elif [ "${{ matrix.distro }}" = "rocky8_nocuda" ]; then
|
||||
for file in *.rpm; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/rpm/centos/el8/nocuda/upload
|
||||
fi
|
||||
done
|
||||
elif [ "${{ matrix.distro }}" = "rocky8_sls9" ]; then
|
||||
for file in *.rpm; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/rpm/centos/el8/cuda12-sls9/upload
|
||||
fi
|
||||
done
|
||||
elif [ "${{ matrix.distro }}" = "ubuntu2204" ]; then
|
||||
for file in *.deb; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/debian/pool/jammy/cuda13/upload
|
||||
fi
|
||||
done
|
||||
elif [ "${{ matrix.distro }}" = "ubuntu2404" ]; then
|
||||
for file in *.deb; do
|
||||
if [ -f "$file" ]; then
|
||||
curl --user __token__:${{ secrets.PIP_REPOSITORY_API_TOKEN }} \
|
||||
--upload-file "$file" \
|
||||
https://gitea.psi.ch/api/packages/mx/debian/pool/noble/cuda13/upload
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
python-client:
|
||||
name: Generate python client
|
||||
runs-on: jfjoch_rocky8
|
||||
@@ -60,6 +108,14 @@ jobs:
|
||||
- name: Build python client
|
||||
shell: bash
|
||||
run: bash gen_python_client.sh
|
||||
- name: Upload Package to Gitea PyPI
|
||||
if: github.ref_type == 'tag'
|
||||
env:
|
||||
TWINE_USERNAME: "__token__" # Username for Twine when using token-based auth
|
||||
TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} # Use the secret for authentication
|
||||
run: |
|
||||
cd python-client
|
||||
twine upload --repository-url https://gitea.psi.ch/api/packages/mx/pypi dist/*
|
||||
documentation:
|
||||
name: Build documentation
|
||||
runs-on: jfjoch_rocky8
|
||||
@@ -72,6 +128,8 @@ jobs:
|
||||
if: github.ref_type == 'tag'
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global user.email "filip.leonarski@psi.ch"
|
||||
git config --global user.name "Filip Leonarski (Gitea)"
|
||||
git checkout --orphan gitea-pages
|
||||
git reset --hard
|
||||
# Remove everything except .git and public
|
||||
@@ -84,16 +142,6 @@ jobs:
|
||||
git add .
|
||||
git commit -m "Deploy site"
|
||||
git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
|
||||
gpu-test:
|
||||
name: GPU test
|
||||
runs-on: jfjoch_rocky8
|
||||
container:
|
||||
image: gitea.psi.ch/leonarski_f/jfjoch_rocky8:2509
|
||||
options: --gpus all
|
||||
steps:
|
||||
- name: List GPUs
|
||||
shell: bash
|
||||
run: nvidia-smi
|
||||
unit-tests:
|
||||
name: Unit tests
|
||||
runs-on: jfjoch_rocky8
|
||||
|
||||
@@ -8,6 +8,8 @@ ARG EIGEN_TAG=3.4.0
|
||||
|
||||
# Update base and install common utilities
|
||||
RUN dnf -y update && \
|
||||
dnf -y install epel-release && \
|
||||
dnf -y update && \
|
||||
dnf -y install --enablerepo=devel \
|
||||
dnf-plugins-core \
|
||||
epel-release \
|
||||
@@ -58,6 +60,7 @@ RUN dnf -y update && \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python3-wheel \
|
||||
twine \
|
||||
freetype-devel && \
|
||||
dnf clean all && rm -rf /var/cache/dnf
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ java -jar openapi-generator-cli.jar generate -i broker/jfjoch_api.yaml -o python
|
||||
cd python-client
|
||||
sed -i s/"NAME = \"jfjoch-client\""/"NAME = \"jfjoch_client\""/ setup.py
|
||||
python3 setup.py sdist bdist_wheel
|
||||
mv dist/* ..
|
||||
Reference in New Issue
Block a user