From 3853adf3683151d8e85b75f2725cb62e8117f9e3 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Thu, 2 Dec 2021 02:51:00 -0700 Subject: [PATCH] Create build_pr.yaml Update README.md Update build_pr.yaml Update build_pr.yaml Update build_pr.yaml Update build_pr.yaml --- .github/workflows/build_pr.yaml | 36 +++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_pr.yaml diff --git a/.github/workflows/build_pr.yaml b/.github/workflows/build_pr.yaml new file mode 100644 index 000000000..029481a25 --- /dev/null +++ b/.github/workflows/build_pr.yaml @@ -0,0 +1,36 @@ +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 diff --git a/README.md b/README.md index 825337825..bce3870e5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Some menu textures are compressed using a format called tkmk00. A byte-matching ├── lib: SDK library code ├── music: sequences ├── src: C source code for the game - │ └── audio: sample tables + │ └── audio: sample tables and audio source │ └── os: libultra ├── textures: texture data, bitmaps │ ├── raw: raw textures