diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index c27bb16..edc9133 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -11,7 +11,7 @@ name: CI # events but only for the master branch on: push: - branches: [ master ] + branches: [ master, update-github-actions ] paths: - 'src/TESTBAS' - 'src/TESTBIN.s' @@ -32,11 +32,11 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 # This will install Merlin32 on your Github Runner machine - name: install-merlin32-action - uses: digarok/install-merlin32-action@v0.1.1 + uses: digarok/install-merlin32-action@v0.1.2 # Now you can use it to assemble your source code - name: Assembly Step @@ -45,30 +45,49 @@ jobs: # CHK Errors (if the previous step failure, there's errors in the source code, then it will upload the errors text file in artifact) - name: CHK errors if: ${{ failure() }} - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Error path: ./src/error_output.txt # This will install Cadius on your Github Runner machine - name: Install Cadius - uses: digarok/install-cadius-action@v0.1.1 + uses: digarok/install-cadius-action@v0.1.2 + + # Check Cadius version for debugging + - name: Check Cadius version + run: cadius --version || cadius || echo "Cadius installed" # This will make bootalble ProDOS DISK image - name: Make bootable ProDOS image run: | + # Set build timestamp variables (ProDOS format) + BUILD_DATE=$(date '+%d-%b-%y' | tr '[:lower:]' '[:upper:]') + BUILD_TIME=$(date '+%H:%M') + TIMESTAMP="$BUILD_DATE $BUILD_TIME" + echo "Build timestamp: $TIMESTAMP" + + # Create ProDOS volume cadius createvolume ./src/virtual.po unidisk 140KB cadius addfile ./src/virtual.po /unidisk/ ./PRODOS.2.4.2/PRODOS cadius addfile ./src/virtual.po /unidisk/ ./PRODOS.2.4.2/BASIC.SYSTEM - echo "TESTBAS=Type(04),AuxType(0000),VersionCreate(24),MinVersion(00),Access(E3)" > ./src/_FileInformation.txt + + # Add TESTBAS with timestamp info + echo "TESTBAS=Type(04),AuxType(0000),VersionCreate(00),MinVersion(00),Access(E3),Created($TIMESTAMP),Modified($TIMESTAMP)" > ./src/_FileInformation.txt cadius addfile ./src/virtual.po /unidisk/ ./src/TESTBAS - echo "TESTBIN=Type(06),AuxType(8000),VersionCreate(24),MinVersion(00),Access(E3)" >> ./src/_FileInformation.txt + + # Add TESTBIN with timestamp info + echo "TESTBIN=Type(06),AuxType(2000),VersionCreate(00),MinVersion(00),Access(E3),Created($TIMESTAMP),Modified($TIMESTAMP)" > ./src/_FileInformation.txt cadius addfile ./src/virtual.po /unidisk/ ./src/TESTBIN + + # Show results cadius catalog ./src/virtual.po + echo "File info created:" + cat ./src/_FileInformation.txt ls -al src # This will upload entire work directory in artifact - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: name: Output path: ./src/ diff --git a/src/TESTBIN.s b/src/TESTBIN.s index c170fe7..00070dc 100644 --- a/src/TESTBIN.s +++ b/src/TESTBIN.s @@ -1,4 +1,4 @@ -* Actions test 2 10/4 +* Actions test 6/6/2025 - test cadius v0.1.2 * Unidisk 3.5 Calc * * The target of this project is to use the Unidisk 3.5 drive to perform