mirror of https://github.com/n64decomp/mk64.git
parent
b35fc205fa
commit
da5f75188b
|
|
@ -1,36 +0,0 @@
|
|||
name: build_pr
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build_pr:
|
||||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout this repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
- name: Checkout baserom
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: coderstig/mk64_priv
|
||||
token: ${{ secrets.PRIV }}
|
||||
path: baserom
|
||||
- name: Decrypt baserom
|
||||
run: echo ${{ secrets.KEY }} | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom/baserom.us.z64.aes -out baserom.us.z64
|
||||
|
||||
- name: Perform make tools
|
||||
run: |
|
||||
sudo apt-get install -y build-essential pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev
|
||||
make -j4 -C tools/
|
||||
- name: Extract assets
|
||||
run: |
|
||||
./extract_assets.py us
|
||||
- name: Build U source
|
||||
run: |
|
||||
make -j4 VERSION=us VERBOSE=1 COLOR=0ke --jobs
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
---
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: valandilmk64/mk64-ci:latest
|
||||
credentials:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build tools
|
||||
run: |
|
||||
make -j4 -C tools/
|
||||
- name: Extract assets
|
||||
run: |
|
||||
# Link the base roms in the build dir.
|
||||
ln -s "/opt/assets/Mario Kart 64 (U) [!].z64" baserom.us.z64
|
||||
# Verify that no assets were committed to the repo.
|
||||
[ -z "$(find {actors,levels,textures}/ -name '*.png')" ]
|
||||
[ -z "$(find assets/ -name '*.m64' -or '*.bin')" ]
|
||||
[ -z "$(find roms/ -name '*.z64')" ]
|
||||
./extract_assets.py us
|
||||
- name: Build U source
|
||||
run: |
|
||||
make -j4 VERSION=us VERBOSE=1 COLOR=0
|
||||
Loading…
Reference in New Issue