mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Merge pull request #3 from NinjaCheetah/master
feat: Add workflow to automatically build devsigned SRL and TAD
This commit is contained in:
commit
adfc7d6c45
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
@ -19,16 +19,59 @@ jobs:
|
|||||||
name: Build with Docker using devkitARM
|
name: Build with Docker using devkitARM
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: git config --global safe.directory '*'
|
run: git config --global safe.directory '*'
|
||||||
- name: Build TAD Delivery Tool
|
- name: Build TAD Delivery Tool
|
||||||
run: make
|
run: make
|
||||||
- name: Publish build to GH Actions
|
- name: Publish build to GH Actions
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4.3.6
|
||||||
with:
|
with:
|
||||||
path: "*.dsi"
|
path: "TDT.dsi"
|
||||||
name: build
|
name: TDT-Nightly-Unsigned
|
||||||
|
|
||||||
|
devsign:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [build]
|
||||||
|
name: Devsign TDT and build a TAD
|
||||||
|
steps:
|
||||||
|
- name: Download artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: TDT-Nightly-Unsigned
|
||||||
|
path: D:\a\TDT\TDT\TDT-Build
|
||||||
|
- name: Set up Python 3.12
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
- name: Clone ntool
|
||||||
|
uses: GuillaumeFalourd/clone-github-repo-action@v2.1
|
||||||
|
with:
|
||||||
|
depth: 1
|
||||||
|
owner: 'xprism1'
|
||||||
|
repository: 'ntool'
|
||||||
|
- name: Devsign TAD Delivery Tool
|
||||||
|
run: |
|
||||||
|
cp TDT-Build\TDT.dsi ntool
|
||||||
|
cd ntool
|
||||||
|
pip install pycryptodome
|
||||||
|
python ntool.py srl_retail2dev TDT.dsi
|
||||||
|
- name: Publish devsigned build to GH Actions
|
||||||
|
uses: actions/upload-artifact@v4.3.6
|
||||||
|
with:
|
||||||
|
path: "ntool/TDT_dev.srl"
|
||||||
|
name: TDT-Nightly-Devsigned
|
||||||
|
- name: Make a devsigned TAD
|
||||||
|
run: |
|
||||||
|
curl https://cdn.randommeaninglesscharacters.com/tools/maketad/maketad.zip -o maketad.zip
|
||||||
|
7z e maketad.zip
|
||||||
|
cp ntool/TDT_dev.srl .
|
||||||
|
.\maketad-20090604.exe TDT_dev.srl -s -o TDT-Nightly.tad
|
||||||
|
- name: Publish devsigned TAD to GH Actions
|
||||||
|
uses: actions/upload-artifact@v4.3.6
|
||||||
|
with:
|
||||||
|
path: "TDT-Nightly.tad"
|
||||||
|
name: TDT-Nightly-TAD
|
||||||
|
|
||||||
# Only run this for non-PR jobs.
|
# Only run this for non-PR jobs.
|
||||||
publish_build:
|
publish_build:
|
||||||
@ -42,8 +85,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: build
|
path: build
|
||||||
- name:
|
- name: Publish Build
|
||||||
if:
|
|
||||||
run: |
|
run: |
|
||||||
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
|
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user