From 19ad54fd1662ac4ac87d2da1411281c63ba286b2 Mon Sep 17 00:00:00 2001 From: Caner Karaca <37447503+CanerKaraca23@users.noreply.github.com> Date: Sun, 7 Jan 2024 09:43:21 +0300 Subject: [PATCH] Add Workflow and Dependabot (#54) * Create dependabot.yml * Create main.yml * Update main.yml * Update main.yml * Update main.yml * Bump external/IniReader from `85c2845` to `e917a99` Bumps [external/IniReader](https://github.com/ThirteenAG/IniReader) from `85c2845` to `e917a99`. - [Commits](https://github.com/ThirteenAG/IniReader/compare/85c2845b9dda0fa1f36612f8476d432dab1730d7...e917a99e79bfe35896482ae7c69917933d11029a) --- updated-dependencies: - dependency-name: external/IniReader dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update main.yml * Update main.yml --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/dependabot.yml | 11 +++++++++ .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ external/IniReader | 2 +- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2a924d8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "gitsubmodule" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0051f06 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: Build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1 + + - name: Configure build + shell: cmd + run: ./premake5.bat + + - name: Build + shell: cmd + run: msbuild -m build/III.VC.SA.IV.Project2DFX.sln /property:Configuration=Release /property:Platform=Win32 + + - name: Download Open Limit Adjuster + uses: robinraju/release-downloader@main + with: + repository: "GTAmodding/III.VC.SA.LimitAdjuster" + latest: true + extract: true + out-file-path: "data" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + compression-level: 9 + name: III.VC.SA.IV.Project2DFX + path: | + data\* + !data\*.exe + !data\*.bat + !data\*.zip + !data\2DFXDataGrabber\ + !data\*\*.exp + !data\*\*.lib + !data\*\*.pdb diff --git a/external/IniReader b/external/IniReader index 85c2845..e917a99 160000 --- a/external/IniReader +++ b/external/IniReader @@ -1 +1 @@ -Subproject commit 85c2845b9dda0fa1f36612f8476d432dab1730d7 +Subproject commit e917a99e79bfe35896482ae7c69917933d11029a