Skip to content

Bump external/IniReader from e0028a9 to 4a1b0dc #58

Bump external/IniReader from e0028a9 to 4a1b0dc

Bump external/IniReader from e0028a9 to 4a1b0dc #58

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: 'none'
options:
- 'none'
- 'gta3'
- 'gtavc'
- 'gtasa'
- 'gtaiv'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@main
- name: Configure build
run: ./premake5 vs2022 --with-version=5.0
- name: Build
run: |
msbuild -m build/III.VC.SA.IV.Project2DFX.sln /property:Configuration=Release /property:Platform=Win32
- name: Download III.VC.SA.LimitAdjuster
uses: robinraju/release-downloader@v1.10
with:
repository: "GTAmodding/III.VC.SA.LimitAdjuster"
latest: true
fileName: "III.VC.SA.LimitAdjuster.zip"
- name: Unpack dependencies
run: |
7z x III.VC.SA.LimitAdjuster.zip -odata/IIILodLights/ -y
7z x III.VC.SA.LimitAdjuster.zip -odata/VCLodLights/ -y
7z x III.VC.SA.LimitAdjuster.zip -odata/SALodLights/ -y
del III.VC.SA.LimitAdjuster.zip
- name: Pack binaries
shell: cmd
run: |
cd data
./release.bat
cd ..
- name: Upload IIILodLights artifact
uses: actions/upload-artifact@v4
with:
name: III.Project2DFX
path: |
data/IIILodLights/*
!**/*.pdb
!**/*.db
!**/*.ipdb
!**/*.iobj
!**/*.lib
!**/*.exp
!**/.gitkeep
- name: Upload VCLodLights artifact
uses: actions/upload-artifact@v4
with:
name: VC.Project2DFX
path: |
data/VCLodLights/*
!**/*.pdb
!**/*.db
!**/*.ipdb
!**/*.iobj
!**/*.lib
!**/*.exp
!**/.gitkeep
- name: Upload SALodLights artifact
uses: actions/upload-artifact@v4
with:
name: SA.Project2DFX
path: |
data/SALodLights/*
!**/*.pdb
!**/*.db
!**/*.ipdb
!**/*.iobj
!**/*.lib
!**/*.exp
!**/.gitkeep
- name: Upload IVLodLights artifact
uses: actions/upload-artifact@v4
with:
name: IV.Project2DFX
path: |
data/IVLodLights/*
!**/*.pdb
!**/*.db
!**/*.ipdb
!**/*.iobj
!**/*.lib
!**/*.exp
!**/.gitkeep
- name: Get release info
if: github.event.inputs.release != '' && github.event.inputs.release != 'none'
id: release_info
uses: cardinalby/git-get-release-action@1.2.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.event.inputs.release }}
- name: Upload Release III
if: |
github.event.inputs.release == 'gta3' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/III.VC.SA.IV.Project2DFX'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info.outputs.name }}
body: ${{ steps.release_info.outputs.body }}
tag: ${{ steps.release_info.outputs.tag_name }}
artifacts: data/III.Project2DFX.zip
- name: Upload Release VC
if: |
github.event.inputs.release == 'gtavc' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/III.VC.SA.IV.Project2DFX'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info.outputs.name }}
body: ${{ steps.release_info.outputs.body }}
tag: ${{ steps.release_info.outputs.tag_name }}
artifacts: data/VC.Project2DFX.zip
- name: Upload Release SA
if: |
github.event.inputs.release == 'gtasa' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/III.VC.SA.IV.Project2DFX'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info.outputs.name }}
body: ${{ steps.release_info.outputs.body }}
tag: ${{ steps.release_info.outputs.tag_name }}
artifacts: data/SA.Project2DFX.zip
- name: Upload Release IV
if: |
github.event.inputs.release == 'gtaiv' &&
github.ref_name == 'master' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'ThirteenAG/III.VC.SA.IV.Project2DFX'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info.outputs.name }}
body: ${{ steps.release_info.outputs.body }}
tag: ${{ steps.release_info.outputs.tag_name }}
artifacts: data/IV.Project2DFX.zip