2023-09-03 09:23:42 +02:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
env:
|
2023-09-03 10:01:11 +02:00
|
|
|
OS: windows
|
2023-09-03 09:23:42 +02:00
|
|
|
cudnn_version: 8.9.4.25
|
|
|
|
cuda_version: cuda12.2
|
|
|
|
CMAKE_VER: 3.27.4
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2023-09-03 11:01:07 +02:00
|
|
|
runs-on: windows
|
2023-09-03 11:04:10 +02:00
|
|
|
container: yunfandev/visualstudio:uwp
|
2023-09-03 09:23:42 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
|
|
|
2023-09-03 10:01:11 +02:00
|
|
|
- name: Install CUDA
|
|
|
|
uses: Jimver/cuda-toolkit@v0.2.11
|
|
|
|
id: cuda-toolkit
|
2023-09-03 09:23:42 +02:00
|
|
|
with:
|
2023-09-03 10:41:58 +02:00
|
|
|
cuda: '12.2.0'
|
2023-09-03 10:01:11 +02:00
|
|
|
- run: nvcc -V
|
2023-09-03 09:23:42 +02:00
|
|
|
|
|
|
|
- name: Install CMake and Ninja
|
|
|
|
uses: lukka/get-cmake@latest
|
|
|
|
with:
|
|
|
|
useLocalCache: true
|
|
|
|
useCloudCache: false
|
|
|
|
cmakeVersion: "~3.27.0"
|
|
|
|
ninjaVersion: latest
|
|
|
|
|
|
|
|
- name: Execute Gradle build
|
|
|
|
run: |
|
2023-09-03 10:01:11 +02:00
|
|
|
./gradlew.bat build \
|
2023-09-03 09:23:42 +02:00
|
|
|
--stacktrace \
|
|
|
|
-Pmavenuser=${{ secrets.MAVENUSER }} \
|
|
|
|
-Pmavenpass=${{ secrets.MAVENPASS }} \
|
|
|
|
-PossrhUsername=${{ secrets.OSSRHUSERNAME }} \
|
|
|
|
-PossrhPassword=${{ secrets.OSSRHPASSWORD }} \
|
|
|
|
-PCAVIS_CHIP=cpu,cuda -Pskip-native=false \
|
|
|
|
>buildlog.log 2>&1
|
|
|
|
|
|
|
|
- name: Upload log
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: success() || failure() # run this step even if previous step failed
|
|
|
|
with:
|
|
|
|
name: my-artifact
|
|
|
|
path: buildlog.log
|
|
|
|
|
|
|
|
- run: echo "This job's status is ${{ job.status }}."
|