Skip to content

Script and Cutscene Model Fix #1263

Script and Cutscene Model Fix

Script and Cutscene Model Fix #1263

Workflow file for this run

name: GitHub Actions Build
on:
push:
paths-ignore:
- "**/*.md"
- '**/*.txt'
branches:
- '**'
pull_request:
paths-ignore:
- "**/*.md"
- '**/*.txt'
workflow_dispatch:
inputs:
release:
description: "Create a release"
type: choice
required: false
default: 'false'
options:
- 'true'
- 'false'
version_increment:
description: "Default semantic version release type"
type: choice
required: false
default: 'minor'
options:
- 'major'
- 'minor'
- 'patch'
env:
VERINC: ${{ github.event.inputs.version_increment || 'patch' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@main
- name: Auto Increment Version
uses: MCKanpolat/auto-semver-action@v2
id: versioning
with:
releaseType: ${{ env.VERINC }}
incrementPerCommit: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure build
run: ./premake5 vs2022 --with-version=${{ steps.versioning.outputs.version }}
- name: Build
run: |
Push-Location external\modupdater
& .\premake5.bat
& .\builddist.bat
Pop-Location
msbuild -m build/GTAIV.EFLC.FusionFix.sln /property:Configuration=Release /property:Platform=Win32
- name: Download Ultimate ASI Loader x86
uses: robinraju/[email protected]
with:
repository: "ThirteenAG/Ultimate-ASI-Loader"
tag: "Win32-latest"
fileName: "dinput8-Win32.zip"
- name: Download DXVK
uses: robinraju/[email protected]
with:
repository: "doitsujin/dxvk"
tag: 'v2.6.2'
fileName: "dxvk-*.tar.gz"
- name: Download Legacy Package
uses: robinraju/[email protected]
with:
repository: "GTAmodding/XLivelessAddon"
tag: "latest"
fileName: "XLivelessAddon.zip"
- name: Unpack dependencies
shell: cmd
run: |
7z x dinput8-Win32.zip -odata/ -y
del dinput8-Win32.zip
del data\dinput8-Win32.SHA512
for %%f in (dxvk-*.tar.gz) do 7z x -so "%%f" | 7z x -si -ttar -odxvk
for /d %%d in (dxvk\dxvk-*) do if exist "%%d\x32\d3d9.dll" copy "%%d\x32\d3d9.dll" "data\vulkan.dll"
rmdir /s /q dxvk
- name: Pack binaries
run: |
./release.bat
- name: Pack Legacy
shell: cmd
run: |
7z e XLivelessAddon.zip plugins/XLivelessAddon.asi -y
mkdir legacy
copy data\dinput8.dll legacy\xlive.dll
mkdir legacy\plugins
copy XLivelessAddon.asi legacy\plugins\
cd legacy
7z a -tzip ..\GTAIV.EFLC.FusionFixLegacyAddon.zip *
cd ..
rmdir /s /q legacy
del XLivelessAddon.asi
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: GTAIV.EFLC.FusionFix
path: |
data/*
!data/update/GTAIV.EFLC.FusionFix/GTAIV.EFLC.FusionFix
!data/update/GTAIV.EFLC.FusionFix/GTAIV.FusionFix
!data/update/GTAIV.EFLC.FusionFix/TLAD.FusionFix
!data/update/GTAIV.EFLC.FusionFix/TBOGT.FusionFix
!data/update/GTAIV.EFLC.FusionFix/FusionTrees
!data/update/GTAIV.EFLC.FusionFix/FusionLights
!data/update/GTAIV.EFLC.FusionFix/cdimagemake.ims
!**/.gitkeep
- name: Upload Web Installer
uses: actions/upload-artifact@v6
with:
name: GTAIV.EFLC.FusionFixWebInstaller.exe
path: GTAIV.EFLC.FusionFixWebInstaller.exe
- name: Upload Offline Installer
uses: actions/upload-artifact@v6
with:
name: GTAIV.EFLC.FusionFixOfflineInstaller.exe
path: GTAIV.EFLC.FusionFixOfflineInstaller.exe
- name: Upload Legacy Addon
uses: actions/upload-artifact@v6
with:
name: GTAIV.EFLC.FusionFixLegacyAddon.zip
path: GTAIV.EFLC.FusionFixLegacyAddon.zip
- name: Upload Release
if: |
github.event.inputs.release == 'true' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/GTAIV.EFLC.FusionFix'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: false
name: GTAIV.EFLC.FusionFix v${{ steps.versioning.outputs.version }}
body: "[README](https://github.com/ThirteenAG/GTAIV.EFLC.FusionFix#readme)"
tag: v${{ steps.versioning.outputs.version }}
artifacts: GTAIV.EFLC.FusionFix.zip, GTAIV.EFLC.FusionFixWebInstaller.exe, GTAIV.EFLC.FusionFixOfflineInstaller.exe, GTAIV.EFLC.FusionFixLegacyAddon.zip