Skip to content

Commit fc2e64f

Browse files
author
Nshtk
committed
Fixed build pipeline
1 parent cdc8dc6 commit fc2e64f

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
jobs:
1919
build-linux:
2020
runs-on: ubuntu-latest
21+
env:
22+
LINUX_ARCH:
23+
${{ github.event.inputs.linux_arch || 'linux-x64' }}
2124
steps:
2225
- name: Checkout Code
2326
uses: actions/checkout@v4
@@ -28,30 +31,33 @@ jobs:
2831
run: chmod +x Scripts/build.sh
2932

3033
- name: Build for Linux
31-
run: ./Scripts/build.sh ${{ github.event.inputs.linux_arch }}
34+
run: cd Scripts && ./build.sh ${{ env.LINUX_ARCH }}
3235

3336
- name: Upload Linux Artifacts
3437
uses: actions/upload-artifact@v4
3538
with:
3639
name: linux-artifacts
37-
path: ./Artifacts/**
40+
path: Artifacts/**
3841

3942
build-windows:
4043
runs-on: windows-latest
44+
env:
45+
WINDOWS_ARCH:
46+
${{ github.event.inputs.windows_arch || 'win-x64' }}
4147
steps:
4248
- name: Checkout Code
4349
uses: actions/checkout@v4
4450
with:
4551
fetch-depth: 0
4652

47-
- name: Make Build Script Executable (WSL)
53+
- name: Make Build Script Executable (WSL) #BUG Fails for some reason
4854
run: wsl chmod +x Scripts/build.sh
4955

5056
- name: Build for Windows (WSL)
51-
run: wsl ./Scripts/build.sh ${{ github.event.inputs.windows_arch }}
57+
run: wsl cd Scripts && ./build.sh ${{ env.WINDOWS_ARCH }}
5258

5359
- name: Upload Windows Artifacts
5460
uses: actions/upload-artifact@v4
5561
with:
5662
name: windows-artifacts
57-
path: ./Artifacts/**
63+
path: Artifacts/**

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ASV-project/ASV-Localization-Manager/build.yml)
2+
13
# Art Stream Vision's Localisation Manager
24
## Description
35
A cross-platform app to change text and voice-over language of Men Of War Assault Squad 2 mods.
46

57
## Usage
6-
App accepts the following command line arguments:
8+
### Arguments
79
- [`--mod_directory <path>`] - path to the mod folder.
810
- [`-h`, `--help`, `-help`] - show help (console).
911

10-
Example: `asvlm.exe --mod_directory ../../../../mods/MyMod`
12+
### Example
13+
`asvlm.exe --mod_directory ../../../../mods/MyMod`
1114

1215
## Project
1316
### Tech

0 commit comments

Comments
 (0)