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-07 08:52:53 +02:00
|
|
|
runs-on: windows-latest
|
2023-09-03 20:17:32 +02:00
|
|
|
#container:
|
2023-09-03 20:33:51 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: powershell
|
2023-09-03 20:17:32 +02:00
|
|
|
|
2023-09-03 09:23:42 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-09-03 10:01:11 +02:00
|
|
|
- name: Install CUDA
|
2023-09-07 13:29:57 +02:00
|
|
|
uses: Jimver/cuda-toolkit@v0.2.11
|
|
|
|
id: cuda-toolkit
|
|
|
|
with:
|
|
|
|
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 \
|
2023-09-03 11:45:54 +02:00
|
|
|
>buildlog.txt 2>&1
|
2023-09-03 09:23:42 +02:00
|
|
|
|
|
|
|
- name: Upload log
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: success() || failure() # run this step even if previous step failed
|
|
|
|
with:
|
2023-09-03 11:45:54 +02:00
|
|
|
name: Build-Log
|
|
|
|
path: buildlog.txt
|
2023-09-03 09:23:42 +02:00
|
|
|
|
|
|
|
- run: echo "This job's status is ${{ job.status }}."
|