Skip to content

Commit

Permalink
Merge pull request #5 from mbtaylor1982/main
Browse files Browse the repository at this point in the history
Added Github workflow actions to automate the release process
  • Loading branch information
cdhooper authored Oct 17, 2024
2 parents c301ed8 + 495da2f commit c81337a
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 25 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build SDMAC

on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Invoke Makefile
run: make all lha adf zip
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate release files

permissions:
contents: write
on:
push:
tags:
- "release_*"
jobs:
make_software:
runs-on: ubuntu-latest
container: ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get the tag / version
id: version
if: startsWith(github.ref, 'refs/tags/release_')
run: echo "version=${GITHUB_REF#refs/tags/release_}" >> $GITHUB_OUTPUT
- name: Invoke Makefile
run: make all lha adf zip VER=${{ steps.version.outputs.version }}
- name: upload build artifacts
uses: actions/upload-artifact@v4
with:
name: software
path: |
*.lha
*.adf
*.zip
if-no-files-found: error
- name: Create a new GitHub release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/release_')
with:
draft: true
body: |
sdmac test utility ${{ steps.version.outputs.version }} release
files: |
*.lha
*.adf
*.zip
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ sdmac
*.swp
*.lst
*.map
*.adf
*.zip
*.lha
8 changes: 4 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"version": "2.0.0",
"tasks": [
{
"label": "MakeAll",
"label": "Make All",
"type": "shell",
"command": "docker run --rm -v ${PWD}:/work -it amigadev/crosstools:m68k-amigaos make all",
"command": "docker run --rm -v ${PWD}:/host -it -w /host ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest make all lha adf zip",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "MakeClean",
"label": "Make Clean",
"type": "shell",
"command": "docker run --rm -v ${PWD}:/work -it amigadev/crosstools:m68k-amigaos make clean",
"command": "docker run --rm -v ${PWD}:/host -it -w /host ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest make clean",
"problemMatcher": [],
"group": {
"kind": "build",
Expand Down
39 changes: 18 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Amiga 3000 SDMAC and WD33C93A register test utility
# Amiga 3000 SDMAC and WD33C93A register test utility

This is a small utility which can identify the Amiga 3000 SDMAC version
and talk through the SDMAC to read WD33C93A registers and identify that
chip as well.

It can be built using the [amigadev/crosstools](https://hub.docker.com/r/amigadev/crosstools) Docker container and VSCode or can be built using Bebbo's gcc Amiga cross-compiler from Linux.
The code can be compiled using the [container-amiga-gcc-amitools](https://github.com/mbtaylor1982/container-amiga-gcc-amitools/pkgs/container/container-amiga-gcc-amitools) with Docker and VSCode or can be built using Bebbo's gcc Amiga cross-compiler in a local Linux environment.

-------------------------------------------------------

Example output
## Example output

<PRE>
```console
8.OS322:> sdmac
Memory controller: Ramsey-07 $f
Ramsey config: Burst Mode, 1Mx4, 238 clock refresh
Expand All @@ -22,24 +22,21 @@ WDC Configuration: DMA Mode, 245 msec timeout, Offset 12, Sync 4.772 MHz
Ramsey test: PASS
SDMAC test: PASS
WDC test: PASS
</PRE>
```

-------------------------------------------------------
----

For more information on WD33C93 and compatible chips, including high resolution photos of chip packages, see the following:<BR>
<A HREF="http://eebugs.com/scsi/wd33c93/">
http://eebugs.com/scsi/wd33c93/
</A>
For more information on WD33C93 and compatible chips, including high resolution photos of chip packages, see the following: [http://eebugs.com/scsi/wd33c93/](http://eebugs.com/scsi/wd33c93/)

Actual samples from my part stock
<PRE>
mcode datecode
WD33C93 00-02 00 8849 115315200102
WD33C93A 00-03 00 8909
WD33C93A 00-04 00 9040 040315200102 9109 041816200102
WD33C93A 00-06 08 9018 058564200302
AM33C93A 08 9022 9009 1048EXA A 8950 1608EXA A
WD33C93A 00-08 09 9209 F 25933A5-3503 9205 F 25890A2-3503
WD33C93B 00-02 0d 1025 E 2513427-3702
AIC-33C93B 0d EBACA724
</PRE>

| chip | | mcode | datecode |
| ---------- | ----- | ----- | ---------------------------------------- |
| WD33C93 | 00-02 | 00 | 8849 115315200102 |
| WD33C93A | 00-03 | 00 | 8909 |
| WD33C93A | 00-04 | 00 | 9040 040315200102 9109 041816200102 |
| WD33C93A | 00-06 | 08 | 9018 058564200302 |
| AM33C93A | | 08 | 9022 9009 1048EXA A 8950 1608EXA A |
| WD33C93A | 00-08 | 09 | 9209 F 25933A5-3503 9205 F 25890A2-3503 |
| WD33C93B | 00-02 | 0d | 1025 E 2513427-3702 |
| AIC-33C93B | | 0d | EBACA724 |

0 comments on commit c81337a

Please sign in to comment.