fix: goldmapper on ci

This commit is contained in:
neoapps-dev
2026-09-01 14:01:39 +03:00
parent 5d21aaee3e
commit 9a9c11c716
7 changed files with 159 additions and 50 deletions
+36 -4
View File
@@ -3,7 +3,37 @@ on:
workflow_dispatch:
jobs:
build-goldmapper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install mingw toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
- name: setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- name: build GoldMapper
run: pnpm goldmapper
- uses: actions/upload-artifact@v4
with:
name: goldmapper
path: |
src-tauri/resources/GoldMapperLib.dll
src-tauri/resources/GoldMapperLauncher.exe
src-tauri/resources/SDL2.dll
build-tauri:
needs: [build-goldmapper]
strategy:
fail-fast: false
matrix:
@@ -27,10 +57,6 @@ jobs:
with:
submodules: true
- name: build GoldMapper
shell: bash
run: pnpm goldmapper
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
@@ -47,6 +73,12 @@ jobs:
node-version: lts/*
cache: "pnpm"
- name: download GoldMapper
uses: actions/download-artifact@v4
with:
name: goldmapper
path: src-tauri/resources
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with: