summaryrefslogtreecommitdiff
path: root/.github/workflows/windows-compile.yml
blob: 28f3c48904a16ce143d437e029567a843c80bb01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Windows Compile test

on:
  push:
    branches: [ "*" ]
  pull_request:
    branches: [ "master" ]

jobs:
  build:
    if: 0
    runs-on: windows-2022
    steps:
      - uses: actions/checkout@v4.1.1
        with:
          submodules: "true"
      - name: Get Complementary file
        uses: actions/checkout@v4.1.1
        with:
          path: complementary_file
          repository: UnspaghettifyKart/action-build-private-file
          ssh-key: ${{ secrets.WINDOWS_SSH_PRIVATE_KEY }}
      - name: Install dependencies
        run: |
          Invoke-WebRequest https://github.com/coco875/mk64-tools/releases/download/v0.0.8/mips-tools-chain-windows.zip -OutFile mips-tools-chain-windows.zip
          Expand-Archive mips-tools-chain-windows.zip -DestinationPath mips-tools-chain-windows
          Copy-Item -Path mips-tools-chain-windows/mingw64 -Destination tools -Recurse
      - name: Build
        run: |
          Copy-Item -Path complementary_file/* -Destination . -Recurse
          echo "${{ secrets.AES_KEY }}" | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom.us.z64.aes -out baserom.us.z64
          python tools/windows_build.py