From 5c35612f5ea99c235cf68b55dd0ab0abdcf7c662 Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 18 Jun 2024 03:02:27 +0000 Subject: [PATCH] build for 1.2mb floppy too git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@335 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- .github/workflows/build.yml | 27 +++++++++++++++++++++------ Makefiles/common.mk | 2 +- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f2ce32..39c2b4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -173,12 +173,23 @@ jobs: - name: Add INCLUDE env run: echo "INCLUDE=/usr/watcom/h" >> $GITHUB_ENV - name: Make - run: xvfb-run make YACC=byacc dos-installer + run: xvfb-run make YACC=byacc dos-installer FLOPPY_SIZE=1440 + - name: Rename + run: mv install.img install1440.img + - name: Make + run: xvfb-run make YACC=byacc dos-installer FLOPPY_SIZE=1200 + - name: Rename + run: mv install.img install1200.img + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: build-dosimg1200 + path: install1200.img - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: build-dosimg - path: install.img + name: build-dosimg1440 + path: install1440.img test: @@ -223,10 +234,14 @@ jobs: uses: actions/download-artifact@v4 with: name: build-debpkg - - name: Download from build-dosimg + - name: Download from build-dosimg1200 + uses: actions/download-artifact@v4 + with: + name: build-dosimg1200 + - name: Download from build-dosimg1440 uses: actions/download-artifact@v4 with: - name: build-dosimg + name: build-dosimg1440 - name: Extract the build-generic run: unzip $GITHUB_WORKSPACE/build-generic.zip - name: Extract the build-macos @@ -238,6 +253,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Release - run: gh release create -t "v$(make get-version)" "$(make get-version)" 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" + run: gh release create -t "v$(make get-version)" "$(make get-version)" 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 install1200.img install1440.img dataworks-amd64-ubuntu.deb -n "Version \`$(make get-version)\` was built in this release" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefiles/common.mk b/Makefiles/common.mk index 11a67f6..a8ce9b0 100644 --- a/Makefiles/common.mk +++ b/Makefiles/common.mk @@ -67,7 +67,7 @@ dos-installer: if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos clean ; fi if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos no-doc ; fi if [ ! "$(FORMAT)" = "NO" ]; then rm -f install.img ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mformat -C -f 1440 -v DWINST -i install.img :: ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mformat -C -f $(FLOPPY_SIZE) -v DWINST -i install.img :: ; fi if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Client/*.exe ::dw.exe ; fi if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Server/*.exe ::dwserv.exe ; fi if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img RemoteClient/*.exe ::dwrcli.exe ; fi -- 2.43.0