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-10-06 12:37:09 +02:00
|
|
|
runs-on: windows
|
2023-09-03 20:17:32 +02:00
|
|
|
#container:
|
2023-09-03 20:33:51 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
2023-09-08 09:18:08 +02:00
|
|
|
shell: msys2 {0}
|
2023-09-03 20:17:32 +02:00
|
|
|
|
2023-09-03 09:23:42 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
2023-09-10 10:27:58 +02:00
|
|
|
uses: actions/checkout@v3
|
2023-09-10 10:27:00 +02:00
|
|
|
|
|
|
|
- name: Install MSYS2
|
|
|
|
uses: msys2/setup-msys2@v2
|
2023-09-08 09:18:08 +02:00
|
|
|
with:
|
|
|
|
msystem: UCRT64
|
|
|
|
update: true
|
|
|
|
install: git tar gzip mingw-w64-ucrt-x86_64-gcc
|
2023-09-08 08:58:26 +02:00
|
|
|
|
|
|
|
# - run: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
|
2023-10-07 15:56:47 +02:00
|
|
|
# - name: Check for CUDA
|
|
|
|
# run: |
|
|
|
|
# echo "Path: $env:PATH"
|
2023-09-07 17:10:25 +02:00
|
|
|
|
2023-10-07 15:56:47 +02:00
|
|
|
# - name: Install CUDA
|
|
|
|
# uses: Jimver/cuda-toolkit@v0.2.11
|
|
|
|
# id: cuda-toolkit
|
|
|
|
# with:
|
|
|
|
# cuda: '12.2.0'
|
|
|
|
# - run: nvcc -V
|
2023-09-03 09:23:42 +02:00
|
|
|
|
|
|
|
- name: Install CMake and Ninja
|
2023-10-07 16:23:26 +02:00
|
|
|
uses: lukka/get-cmake@v3.27.7
|
2023-09-03 09:23:42 +02:00
|
|
|
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 }}."
|