52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
env:
|
|
OS: windows
|
|
cudnn_version: 8.9.4.25
|
|
cuda_version: cuda12.2
|
|
CMAKE_VER: 3.27.4
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: windows:docker://yunfandev/visualstudio
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
|
|
- name: Install CUDA
|
|
uses: Jimver/cuda-toolkit@v0.2.11
|
|
id: cuda-toolkit
|
|
with:
|
|
cuda: '12.2.2'
|
|
- run: nvcc -V
|
|
|
|
- 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: |
|
|
./gradlew.bat build \
|
|
--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 }}." |