-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions Workflow to build Host EXE (#170)
- Loading branch information
1 parent
76de7b1
commit 669e39a
Showing
3 changed files
with
96 additions
and
2 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,63 @@ | ||
name: Build Host as Windows Executable | ||
|
||
on: | ||
push: | ||
branches: [rewrite] | ||
|
||
paths: | ||
- 'host/**' | ||
- '.github/workflows/nxdt_host_exe.yml' | ||
|
||
# Allows you to run this workflow manually from the Actions tab. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
steps: | ||
- name: Set environment variables | ||
run: | | ||
echo "nxdt_commit=$("${{ github.sha }}".SubString(0, 7))" >> $env:GITHUB_ENV | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
# 3.12.5 was released on 2024-08-06. | ||
# See https://www.python.org/downloads/ for available versions. | ||
|
||
- name: Install dependencies and build EXE | ||
run: .\host\windows_make_standalone.bat | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nxdt_host-${{ env.nxdt_commit }}.7z | ||
path: host/nxdt_host.7z | ||
if-no-files-found: error | ||
|
||
- name: Upload nxdumptool-rewrite PoC artifacts to pre-release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
# Only update attachments on "rewrite-prerelease" tag. | ||
prerelease: True | ||
tag: "rewrite-prerelease" | ||
updateOnlyUnreleased: True | ||
# Replace old artifacts with new ones. | ||
removeArtifacts: False | ||
replacesArtifacts: True | ||
# Update preferences. | ||
allowUpdates: True | ||
omitBody: True | ||
omitBodyDuringUpdate: True | ||
omitNameDuringUpdate: True | ||
artifacts: "host/nxdt_host.7z" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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