Work on deploy

This commit is contained in:
Robin Jones 2023-02-27 03:29:36 +00:00
parent 8595d4f713
commit 808b6794c6
6 changed files with 1448 additions and 4 deletions

View File

@ -1,6 +1,9 @@
FROM ghcr.io/n64-tools/gcc-toolchain-mips64:latest FROM ghcr.io/n64-tools/gcc-toolchain-mips64:latest
RUN apt-get update && apt-get install -y python3 RUN apt-get update && apt-get install -y python3 python3-serial python3-pil
RUN mkdir -p /etc/udev/rules.d
RUN echo 'KERNEL=="ttyUSB[0-9]*",MODE="0666' > /etc/udev/rules.d/99-serial.rules
RUN git clone --branch trunk https://github.com/dragonminded/libdragon.git --depth 1 ./sources/libdragon RUN git clone --branch trunk https://github.com/dragonminded/libdragon.git --depth 1 ./sources/libdragon

View File

@ -2,13 +2,20 @@
"name": "N64FlashcartMenu", "name": "N64FlashcartMenu",
// If you prefer, you can use the source files and adjust them they are located, with the same names in ./sources. This will alow you to customize them and add anything you may need on top. // If you prefer, you can use the source files and adjust them they are located, with the same names in ./sources. This will alow you to customize them and add anything you may need on top.
"dockerFile": "Dockerfile", "dockerFile": "Dockerfile",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--privileged"
],
"context": ".", "context": ".",
"mounts": [ "mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
// Keep command history // Keep command history
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume"//, "source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume",
// Could this handle USB? // Could this handle USB?
// "type=bind,source=/dev/bus/usb,target=/dev/bus/usb" "type=bind,source=/dev/bus/usb,target=/dev/bus/usb"
//"type=bind,source=/dev,target=/dev"
], ],
"customizations": { "customizations": {
"vscode": { "vscode": {

View File

@ -79,7 +79,7 @@ jobs:
- name: Finalize rom - name: Finalize rom
run: | run: |
cd ./build cd ./build
python ../tools/finalize.py N64FlashcartMenu.z64 python ../tools/sc64/finalize.py N64FlashcartMenu.z64
continue-on-error: false continue-on-error: false
- name: Upload artifact - name: Upload artifact

12
tools/sc64/README.md Normal file
View File

@ -0,0 +1,12 @@
# Source
https://github.com/Polprzewodnikowy/SummerCart64
# License
GPL-3.0 license
# Description
Used for build and deployment
# Notes
It might be preferable to change to a submodule.
But `finalize.py` is independent.

1422
tools/sc64/sc64.py Normal file

File diff suppressed because it is too large Load Diff