Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/01-build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# With thanks to https://gist.github.com/weibeld/f136048d0a82aacc063f42e684e3c494
name: build-and-release
on: push
permissions:
contents: write
jobs:
build-job:
runs-on: ubuntu-latest
container:
image: ghcr.io/volkertb/debian-djgpp:v0.2
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build with debug
run: |
cd Make
make clean
make DEBUG=1
mv output/usbddosp.exe output/usbddosp_dbg.exe
test -f output/usbddosp_dbg.exe
- name: Build without debug
run: |
cd Make
make clean
make
test -f output/usbddosp.exe
test -f output/usbddosp_dbg.exe
# Verify that the non-debug variant is actually different from the debug variant.
! diff output/usbddosp.exe output/usbddosp_dbg.exe
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: compiled-usbddosp-executables
path: |
Make/output/usbddosp.exe
Make/output/usbddosp_dbg.exe
retention-days: 1

publish-job:
# TODO: uncomment following line (and remove this TODO) once the PR is approved, just before merging to master/main
#if: github.event.ref_name == github.event.repository.default_branch
needs: build-job
runs-on: ubuntu-latest
steps:
- name: Generate release tag
id: tag
run: |
echo "release_tag=UserBuild_$(date +"%Y.%m.%d_%H-%M")" >> $GITHUB_OUTPUT
- name: 'Download Artifacts'
uses: actions/download-artifact@v4
with:
name: compiled-usbddosp-executables
- name: Release compiled executables
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: |
usbddosp.exe
usbddosp_dbg.exe
body: |
## Description of files

- `usbddosp.exe` -> Regular build that you should use normally.
- `usbddosp_dbg.exe` -> Debug-enabled build to help with debugging and troubleshooting.

When the tool isn't working on the hardware you're trying it on, then please try the debug-enabled build.
When opening a GitHub issue to report incompatible hardware, please include any debug output.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
.vscode
Make/output/*.*
10 changes: 9 additions & 1 deletion Make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ RM := del
clean:
$(RM) output\*.o
else #PROMPT
ifeq (, $(shell which i586-pc-msdosdjgpp-gcc)) # If i586-pc-msdosdjgpp-gcc is not in the path
ifeq (, $(shell which gcc)) # If gcc is also not in the path
$(error "No compiler found in $(PATH), make sure that either i586-pc-msdosdjgpp-gcc or gcc (DJGPP) is installed.")
else # gcc IS in the path
CC = gcc
endif # If gcc is also not in the path
else # i586-pc-msdosdjgpp-gcc IS in the path
CC = i586-pc-msdosdjgpp-gcc
endif # If i586-pc-msdosdjgpp-gcc is not in the path
SRC = $(shell find .. -name '*.c')
clean:
$(RM) $(OBJS)
Expand All @@ -24,7 +32,7 @@ LDFLAGS = -lm

ifeq ($(DEBUG),0)
LDFLAGS += -s
CFLAGS += -DNDEBUG
CFLAGS += -DNDEBUG -DDEBUG=0
else
CFLAGS += -DDEBUG=1
endif
Expand Down
2 changes: 1 addition & 1 deletion RetroWav/Board/OPL3.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
并将在法律允许的最大范围内被起诉。
*/

#include "RETROWAV/BOARD/OPL3.h"
#include "OPL3.h"

static const int transfer_speed = 2e6;

Expand Down
2 changes: 1 addition & 1 deletion RetroWav/Protocol/Serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
并将在法律允许的最大范围内被起诉。
*/

#include "Retrowav/Protocol/Serial.h"
#include "Serial.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion RetroWav/RetroWav.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
并将在法律允许的最大范围内被起诉。
*/

#include "RetroWav/RetroWav.h"
#include "RetroWav.h"
#include <assert.h>

#define RETROWAVE_CMD_BUFFER_SIZE 110
Expand Down
2 changes: 1 addition & 1 deletion USBDDOS/HCD/hcd.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _HCD_H_
#define _HCD_H_ 1
#include "USBDDOS/platform.h"
#include "USBDDOS/USBCFG.H"
#include "USBDDOS/usbcfg.h"
#include "USBDDOS/pci.h"

//host controler driver generic
Expand Down