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