]> Nishi Git Mirror - dataworks.git/commitdiff
add amigaos build
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 19 Jun 2024 14:50:06 +0000 (14:50 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 19 Jun 2024 14:50:06 +0000 (14:50 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@367 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

.github/workflows/build.yml
vc.config [new file with mode: 0644]

index 7776de48979a5e12d7d58d84fa9942a577f6857d..83cfa788814b32aaba25e7a56c2adcd85caf4bf0 100644 (file)
@@ -43,6 +43,50 @@ jobs:
     - name: Deploy
       uses: actions/deploy-pages@v4
 
+  build-amiga:
+
+    name: "Build for Amiga"
+
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: write
+
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Install packages
+      run: sudo apt-get install zip byacc flex doxygen graphviz lhasa
+    - name: Get VBCC
+      run: git clone https://github.com/kusma/vbcc
+    - name: Get VASM
+      run: git clone https://github.com/kusma/vasm
+    - name: Get VLINK
+      run: git clone https://github.com/kusma/vlink
+    - name: Get targets and stuff
+      run: git clone https://github.com/kusma/amiga-dev
+    - name: Make directories for VBCC/VASM/VLINK
+      run: sudo mkdir -p /usr/vtool/bin && sudo mkdir -p /usr/vtool/config && sudo mkdir -p /usr/vtool/targets
+    - name: Build VBCC
+      run: yes "" | make TARGET=m68k
+      working-directory: ./vbcc
+    - name: Build VASM
+      run: make CPU=m68k SYNTAX=mot -j3
+      working-directory: ./vasm
+    - name: Build VLINK
+      run: make -j3
+      working-directory: ./vlink
+    - name: Copy files
+      run: sudo cp vbcc/bin/* /usr/vtool/bin/ && sudo cp vasm/vobjdump /usr/vtool/bin/ && sudo cp vasm/vasmm68k_mot /usr/vtool/bin/ && sudo cp vlink/vlink /usr/vtool/bin/ && sudo cp amiga-dev/targets/m68k-amigaos /usr/vtool/targets/ && sudo cp vc.config /usr/vtool/config/kick13
+    - name: Add PATH
+      run: echo "/usr/vtool/bin" >> $GITHUB_PATH
+    - name: Add VBCC env
+      run: echo "VBCC=/usr/vtool" >> $GITHUB_ENV
+    - name: Make sure it is clean
+      run: make clean
+    - name: Make for Amiga
+      run: make YACC=byacc -j3 PLATFORM=amigaos archive
+
   build-linux64:
 
     name: "Build for Linux 64-bit"
@@ -364,7 +408,7 @@ jobs:
     permissions:
       contents: write
 
-    needs: [build-dos, build-dos4g, build-win32, build-win64, build-linux64, build-mac, build-os2, build-debpkg, build-dosimg, test]
+    needs: [build-dos, build-dos4g, build-amiga, build-win32, build-win64, build-linux64, build-mac, build-os2, build-debpkg, build-dosimg, test]
 
     steps:
     - name: Checkout
diff --git a/vc.config b/vc.config
new file mode 100644 (file)
index 0000000..18a0405
--- /dev/null
+++ b/vc.config
@@ -0,0 +1,15 @@
+-cc=vbccm68k -quiet %s -o= %s %s -O=%ld -no-cpp-warn -I$VBCC/targets/m68k-kick13/include
+-ccv=vbccm68k %s -o= %s %s -O=%ld -no-cpp-warn -I$VBCC/targets/m68k-kick13/include
+-as=vasmm68k_mot -quiet -Fhunk -kick1hunks -nowarn=62 %s -o %s
+-asv=vasmm68k_mot -Fhunk -kick1hunks -nowarn=62 %s -o %s
+-rm=rm -f %s
+-rmv=rm %s
+-ld=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -Z -mrel $VBCC/targets/m68k-kick13/lib/startup.o %s %s -L$VBCC/targets/m68k-kick13/lib -lvc -o %s
+-l2=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -Z -mrel %s %s -L$VBCC/targets/m68k-kick13/lib -o %s
+-ldv=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib -Z -mrel $VBCC/targets/m68k-kick13/lib/startup.o %s %s -L$VBCC/targets/m68k-kick13/lib -lvc -o %s
+-l2v=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib -Z -mrel %s %s -L$VBCC/targets/m68k-kick13/lib -o %s
+-ldnodb=-s
+-ul=-l%s
+-cf=-F%s
+-ml=1000
+-hunkdebug