mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-04-28 05:01:39 +00:00
Split build process
This commit is contained in:
parent
3365857422
commit
8689ef63cd
1 changed files with 59 additions and 23 deletions
82
.github/workflows/validate.yml
vendored
82
.github/workflows/validate.yml
vendored
|
|
@ -9,12 +9,11 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-unix:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
type: [ Debug, Release ]
|
type: [ Debug, Release ]
|
||||||
os: [ ubuntu-latest ]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -23,12 +22,7 @@ jobs:
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-rt64-ccache
|
key: ${{ runner.os }}-z64re-ccache
|
||||||
- name: Install Windows Dependencies
|
|
||||||
if: runner.os == 'Windows'
|
|
||||||
run: |
|
|
||||||
choco install ninja
|
|
||||||
Remove-Item -Path "C:\ProgramData\Chocolatey\bin\ccache.exe" -Force -ErrorAction SilentlyContinue
|
|
||||||
- name: Install Linux Dependencies
|
- name: Install Linux Dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -49,11 +43,7 @@ jobs:
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
|
sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
|
||||||
echo ::endgroup::
|
echo ::endgroup::
|
||||||
- name: Configure Developer Command Prompt
|
|
||||||
if: runner.os == 'Windows'
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
|
||||||
- name: Prepare Build
|
- name: Prepare Build
|
||||||
if: runner.os != 'Windows'
|
|
||||||
run: |-
|
run: |-
|
||||||
git clone https://${{ secrets.PAT }}@github.com/dcvz/zre.git
|
git clone https://${{ secrets.PAT }}@github.com/dcvz/zre.git
|
||||||
./zre/process.sh
|
./zre/process.sh
|
||||||
|
|
@ -64,30 +54,76 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules --branch symbol-file-toml-update
|
git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules --branch symbol-file-toml-update
|
||||||
cd N64Recomp
|
cd N64Recomp
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
|
||||||
cmake --build cmake-build --config Debug --target N64Recomp -j 8
|
# enable ccache
|
||||||
cmake --build cmake-build --config Debug --target RSPRecomp -j 8
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||||
|
|
||||||
|
# Build N64Recomp & RSPRecomp
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
||||||
|
cmake --build cmake-build --config Release --target N64Recomp -j 8
|
||||||
|
cmake --build cmake-build --config Release --target RSPRecomp -j 8
|
||||||
|
|
||||||
|
# Copy N64Recomp & RSPRecomp to root directory
|
||||||
cp cmake-build/N64Recomp .
|
cp cmake-build/N64Recomp .
|
||||||
cp cmake-build/RSPRecomp .
|
cp cmake-build/RSPRecomp .
|
||||||
- name: Run N64Recomp & RSPRecomp
|
- name: Run N64Recomp & RSPRecomp
|
||||||
if: runner.os != 'Windows'
|
|
||||||
run: |
|
run: |
|
||||||
./N64Recomp us.rev1.toml
|
./N64Recomp us.rev1.toml
|
||||||
./RSPRecomp aspMain.us.rev1.toml
|
./RSPRecomp aspMain.us.rev1.toml
|
||||||
./RSPRecomp njpgdspMain.us.rev1.toml
|
./RSPRecomp njpgdspMain.us.rev1.toml
|
||||||
- name: Build ZeldaRecomp (Unix)
|
- name: Build ZeldaRecomp (Unix)
|
||||||
if: runner.os != 'Windows'
|
|
||||||
run: |-
|
run: |-
|
||||||
# enable ccache
|
# enable ccache
|
||||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
||||||
cmake --build cmake-build --config Debug --target rt64 -j 8
|
cmake --build cmake-build --config ${{ matrix.type }} --target rt64 -j 8
|
||||||
- name: Build ZeldaRecomp (Windows)
|
build-windows:
|
||||||
if: runner.os == 'Windows'
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
type: [ Debug, Release ]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: ccache
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
key: ${{ runner.os }}-z64re-ccache
|
||||||
|
- name: Install Windows Dependencies
|
||||||
|
run: |
|
||||||
|
choco install ninja gnupg
|
||||||
|
Remove-Item -Path "C:\ProgramData\Chocolatey\bin\ccache.exe" -Force -ErrorAction SilentlyContinue
|
||||||
|
- name: Configure Developer Command Prompt
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- name: Prepare Build
|
||||||
|
run: |-
|
||||||
|
git clone https://${{ secrets.PAT }}@github.com/dcvz/zre.git
|
||||||
|
./zre/process.ps1
|
||||||
|
env:
|
||||||
|
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
|
||||||
|
- name: Build N64Recomp & RSPRecomp
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/Mr-Wiseguy/N64Recomp.git --recurse-submodules --branch symbol-file-toml-update
|
||||||
|
cd N64Recomp
|
||||||
|
|
||||||
|
# enable ccache
|
||||||
|
set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH"
|
||||||
|
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
||||||
|
cmake --build cmake-build --config Release --target N64Recomp -j 8
|
||||||
|
cmake --build cmake-build --config Release --target RSPRecomp -j 8
|
||||||
|
- name: Run N64Recomp & RSPRecomp
|
||||||
|
run: |
|
||||||
|
./N64Recomp.exe us.rev1.toml
|
||||||
|
./RSPRecomp.exe aspMain.us.rev1.toml
|
||||||
|
./RSPRecomp.exe njpgdspMain.us.rev1.toml
|
||||||
|
- name: Build ZeldaRecomp (Unix)
|
||||||
run: |-
|
run: |-
|
||||||
# enable ccache
|
# enable ccache
|
||||||
set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH"
|
set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH"
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build
|
||||||
cmake --build cmake-build --config Debug --target rt64 -j 8
|
cmake --build cmake-build --config ${{ matrix.type }} --target rt64 -j 8
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue