Files
Nextcloud-Uploader/.gitea/workflows/linux-source-checks.yaml
T
Emporex d98a97f5fe
Linux Source Checks and Windows EXE Build / source-checks-and-build (push) Failing after 3m30s
Use cached Alpine runner for Mono Windows EXE build
2026-11-01 09:54:58 +01:00

42 lines
1.0 KiB
YAML

name: Linux Source Checks and Windows EXE Build
on:
push:
pull_request:
permissions:
contents: read
jobs:
source-checks-and-build:
runs-on: ubuntu-24.04
container:
image: node:20-alpine
steps:
- name: Install Git and Mono compiler
run: apk add --no-cache git mono
shell: sh
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check latest commit for whitespace errors
run: git show --check --oneline HEAD
shell: sh
- name: Build Windows Forms EXE with Mono
run: |
mkdir -p release
mcs -target:winexe -optimize+ -out:release/TAP-Uploader.exe -r:System.Windows.Forms.dll -r:System.Drawing.dll uploader/TapUploader.cs
test -s release/TAP-Uploader.exe
shell: sh
- name: Upload Windows EXE artifact
uses: actions/upload-artifact@v4
with:
name: TAP-Uploader-Windows
path: release/TAP-Uploader.exe
if-no-files-found: error