Build Windows EXE on Linux with Mono
Linux Source Checks and Windows EXE Build / source-checks-and-build (push) Canceled after 3m32s
Linux Source Checks and Windows EXE Build / source-checks-and-build (push) Canceled after 3m32s
This commit is contained in:
1 parent
61c48c57ea
commit
2d60526889
1 file changed
+24
-7
@@ -1,4 +1,4 @@
|
|||||||
name: Linux Source Checks
|
name: Linux Source Checks and Windows EXE Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,14 +8,17 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
source-checks:
|
source-checks-and-build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: node:20-alpine
|
image: node:20-bookworm-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Install Git for checkout
|
- name: Install Git and Mono compiler
|
||||||
run: apk add --no-cache git
|
run: |
|
||||||
shell: sh
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends git mono-devel
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -24,4 +27,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Check latest commit for whitespace errors
|
- name: Check latest commit for whitespace errors
|
||||||
run: git show --check --oneline HEAD
|
run: git show --check --oneline HEAD
|
||||||
shell: sh
|
shell: bash
|
||||||
|
|
||||||
|
- 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: bash
|
||||||
|
|
||||||
|
- 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
|
||||||
Reference in new issue
Block a user