cavis/.gitea/workflows/build-windows.yaml

68 lines
1.8 KiB
YAML
Raw Normal View History

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
#container:
defaults:
run:
shell: msys2 {0}
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: git tar gzip mingw-w64-ucrt-x86_64-gcc
# - run: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
# - name: Check for CUDA
# run: |
# echo "Path: $env:PATH"
# - name: Install CUDA
# uses: Jimver/cuda-toolkit@v0.2.11
# id: cuda-toolkit
# with:
# cuda: '12.2.0'
# - run: nvcc -V
- name: Install CMake and Ninja
uses: lukka/get-cmake@dev/fix91
with:
useLocalCache: false
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.txt 2>&1
- name: Upload log
uses: actions/upload-artifact@v3
if: success() || failure() # run this step even if previous step failed
with:
name: Build-Log
path: buildlog.txt
- run: echo "This job's status is ${{ job.status }}."