]> Nishi Git Mirror - dataworks.git/commitdiff
upload deb
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:31:31 +0000 (00:31 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:31:31 +0000 (00:31 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@319 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

.github/workflows/build.yml

index 203afe56ccecd483c7067b47b4712a6fb2cc146f..fb961d1df76886e3591348d960cc2f6140d4581a 100644 (file)
@@ -124,6 +124,30 @@ jobs:
         name: build-macos
         path: build-macos.zip
 
+  build-dosimg:
+
+    name: "Build for .deb"
+
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: write
+
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Install packages
+      run: sudo apt install flex byacc make graphviz
+    - name: Make
+      run: make YACC=byacc ./Package/dataworks.deb DEB_ARCH=amd64
+    - name: Rename
+      run: mv Package/dataworks.deb dataworks.deb
+    - name: Upload artifact
+      uses: actions/upload-artifact@v4
+      with:
+        name: build-debpkg
+        path: dataworks.deb
+
   build-dosimg:
 
     name: "Build for DOS floppy image"
@@ -179,6 +203,10 @@ jobs:
       uses: actions/download-artifact@v4
       with:
         name: build-macos
+    - name: Download from build-debpkg
+      uses: actions/download-artifact@v4
+      with:
+        name: build-debpkg
     - name: Download from build-dosimg
       uses: actions/download-artifact@v4
       with:
@@ -187,7 +215,9 @@ jobs:
       run: unzip $GITHUB_WORKSPACE/build-generic.zip
     - name: Extract the build-macos
       run: unzip $GITHUB_WORKSPACE/build-macos.zip
+    - name: Rename dataworks.deb
+      run: mv dataworks.deb dataworks-amd64-ubuntu.deb
     - name: Release
-      run: gh release create -t "Release $(date +"%a %b %e %H:%M:%S %Z %Y")" "$(date +%Y%m%d%H%M%S)" dataworks-linux64.{tar.gz,zip} dataworks-win32.{tar.gz,zip} dataworks-dos4g.{tar.gz,zip} dataworks-dos.{tar.gz,zip} dataworks-win64.{tar.gz,zip} dataworks-macos-arm64.{tar.gz,zip} dataworks-server-win32.exe dataworks-server-win64.exe dataworks-server-dos.exe dataworks-server-dos4g.exe dataworks-win32.exe dataworks-win64.exe dataworks-dos.exe dataworks-dos4g.exe dataworks-linux64 dataworks-server-linux64 dataworks-macos-arm64 dataworks-server-macos-arm64 install.img -n "Version \`$(make get-version)\` was built in this release"
+      run: gh release create -t "Release $(date +"%a %b %e %H:%M:%S %Z %Y")" "$(date +%Y%m%d%H%M%S)" dataworks-linux64.{tar.gz,zip} dataworks-win32.{tar.gz,zip} dataworks-dos4g.{tar.gz,zip} dataworks-dos.{tar.gz,zip} dataworks-win64.{tar.gz,zip} dataworks-macos-arm64.{tar.gz,zip} dataworks-server-win32.exe dataworks-server-win64.exe dataworks-server-dos.exe dataworks-server-dos4g.exe dataworks-win32.exe dataworks-win64.exe dataworks-dos.exe dataworks-dos4g.exe dataworks-linux64 dataworks-server-linux64 dataworks-macos-arm64 dataworks-server-macos-arm64 install.img dataworks-amd64-ubuntu.deb -n "Version \`$(make get-version)\` was built in this release"
       env:
         GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}