forked from RenolY2/mkdd-track-patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RenolY2#28 from cristian64/add_build_github_actions
Add GitHub Actions to generate build on Linux (x64) and Windows (x64).
- Loading branch information
Showing
8 changed files
with
165 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: 🔨 Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-2022 | ||
name: 🪟 Windows (x64) | ||
|
||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python Dependencies | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install .NET Dependencies | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Build | ||
run: | | ||
# Create a virtual environment. | ||
set PYTHONNOUSERSITE=1 | ||
set "PYTHONPATH=" | ||
python3 -m venv venv | ||
venv/Scripts/activate.ps1 | ||
# Install dependencies. | ||
python -m pip install -r requirements-build-windows.txt | ||
python -m pip install -r requirements.txt | ||
# Build the bundle. | ||
python setup.py build | ||
shell: powershell | ||
|
||
- name: Set Artifact Name | ||
id: set-artifact-name | ||
run: echo "artifact_name=`ls build`" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Upload Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.set-artifact-name.outputs.artifact_name }} | ||
path: build/* | ||
|
||
build-linux: | ||
runs-on: ubuntu-22.04 | ||
name: 🐧 Linux (x64) | ||
|
||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python Dependencies | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install .NET Dependencies | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Build | ||
run: | | ||
# Create a virtual environment. | ||
export PYTHONNOUSERSITE=1 | ||
unset PYTHONPATH | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
# Install dependencies. | ||
python -m pip install -r requirements-build-linux.txt | ||
python -m pip install -r requirements.txt | ||
# Build the bundle. | ||
python setup.py build | ||
shell: bash | ||
|
||
- name: Set Artifact Name | ||
id: set-artifact-name | ||
run: echo "artifact_name=`ls build`" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Upload Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.set-artifact-name.outputs.artifact_name }} | ||
path: build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cx-Freeze==6.15.16 | ||
patchelf==0.17.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cx-Freeze==6.15.16 | ||
cx-Logging==3.2.1 | ||
lief==0.14.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters