summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2024-04-13 02:54:59 +0200
committerGitHub <noreply@github.com>2024-04-12 18:54:59 -0600
commite2c19fd4bc8e5f7db8e64629491b80a63c53ee98 (patch)
tree616962007475725799158741c69c453429a989ed /.github/workflows
parent2d3278d0735386c37b37691dadfaee0dd687d76d (diff)
use github actions instead (#605)
* Create actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/doxygen-and-linux-test.yml54
-rw-r--r--.github/workflows/doxygen-gh-pages.yml36
-rw-r--r--.github/workflows/linux-compile.yml30
-rw-r--r--.github/workflows/macos-compile.yml32
-rw-r--r--.github/workflows/windows-compile.yml31
5 files changed, 147 insertions, 36 deletions
diff --git a/.github/workflows/doxygen-and-linux-test.yml b/.github/workflows/doxygen-and-linux-test.yml
new file mode 100644
index 000000000..d88f0bb73
--- /dev/null
+++ b/.github/workflows/doxygen-and-linux-test.yml
@@ -0,0 +1,54 @@
+name: Doxygen GitHub Pages Deploy Action
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ 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.LINUX_DEPLOY_SSH_PRIVATE_KEY }}
+ - name: Install dependencies
+ run: |
+ sudo apt install build-essential cmake pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev
+ - name: Build
+ run: |
+ cp -r complementary_file/* .
+ echo "${{ secrets.AES_KEY }}" | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom.us.z64.aes -out baserom.us.z64
+ make assets
+ make -j
+ - name: Install Doxygen
+ run: |
+ sudo apt-get install graphviz doxygen
+ wget https://www.doxygen.nl/files/doxygen-1.10.0.linux.bin.tar.gz
+ tar -xzf doxygen-*.linux.bin.tar.gz
+
+ - name: make badge
+ run: |
+ pip install pybadges
+ python3 progress.py badge
+
+ - name: Generate Doxygen documentation
+ run: |
+ ./doxygen-*/bin/doxygen Doxyfile
+
+ - name: Create .nojekyll (ensures pages with underscores work on gh pages)
+ run: touch docs/html/.nojekyll
+
+ - name: Deploy to GitHub Pages
+ uses: JamesIves/github-pages-deploy-action@v4
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ branch: gh-pages
+ folder: docs/html \ No newline at end of file
diff --git a/.github/workflows/doxygen-gh-pages.yml b/.github/workflows/doxygen-gh-pages.yml
deleted file mode 100644
index 73c6f669b..000000000
--- a/.github/workflows/doxygen-gh-pages.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: Doxygen GitHub Pages Deploy Action
-
-on:
- push:
- branches:
- - master
- workflow_dispatch:
-
-jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- with:
- submodules: "true"
-
- - name: Install Doxygen
- run: |
- sudo apt-get install graphviz doxygen -y
- wget https://www.doxygen.nl/files/doxygen-1.10.0.linux.bin.tar.gz
- tar -xzf doxygen-*.linux.bin.tar.gz
-
- - name: Generate Doxygen documentation
- run: |
- ./doxygen-*/bin/doxygen Doxyfile
-
- - name: Create .nojekyll (ensures pages with underscores work on gh pages)
- run: touch docs/html/.nojekyll
-
- - name: Deploy to GitHub Pages
- uses: JamesIves/github-pages-deploy-action@v4
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- branch: gh-pages
- folder: docs/html \ No newline at end of file
diff --git a/.github/workflows/linux-compile.yml b/.github/workflows/linux-compile.yml
new file mode 100644
index 000000000..7ef63168d
--- /dev/null
+++ b/.github/workflows/linux-compile.yml
@@ -0,0 +1,30 @@
+name: Linux Compile test
+
+on:
+ push:
+ branches: [ "*" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ 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.LINUX_SSH_PRIVATE_KEY }}
+ - name: Install dependencies
+ run: |
+ sudo apt install build-essential cmake pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev
+ - name: Build
+ run: |
+ cp -r complementary_file/* .
+ echo "${{ secrets.AES_KEY }}" | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom.us.z64.aes -out baserom.us.z64
+ make assets
+ make -j \ No newline at end of file
diff --git a/.github/workflows/macos-compile.yml b/.github/workflows/macos-compile.yml
new file mode 100644
index 000000000..23fa71db7
--- /dev/null
+++ b/.github/workflows/macos-compile.yml
@@ -0,0 +1,32 @@
+name: Macos Compile test
+
+on:
+ push:
+ branches: [ "*" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ if: 0
+ runs-on: macos-latest
+ 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.MACOS_SSH_PRIVATE_KEY }}
+ - name: Install dependencies
+ run: |
+ brew update
+ brew install python3 capstone coreutils make pkg-config tehzz/n64-dev/mips64-elf-binutils cmake
+ - name: Build
+ run: |
+ cp -r complementary_file/* .
+ echo "${{ secrets.AES_KEY }}" | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom.us.z64.aes -out baserom.us.z64
+ make assets
+ make -j \ No newline at end of file
diff --git a/.github/workflows/windows-compile.yml b/.github/workflows/windows-compile.yml
new file mode 100644
index 000000000..1bfd68ee0
--- /dev/null
+++ b/.github/workflows/windows-compile.yml
@@ -0,0 +1,31 @@
+name: Windows Compile test
+
+on:
+ push:
+ branches: [ "*" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ 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.6/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 \ No newline at end of file