Merge pull request #1 from dhrdlicka/main

Add a GitHub workflow
This commit is contained in:
richardg867
2021-12-15 19:00:43 -03:00
committed by GitHub
12 changed files with 84 additions and 2 deletions

77
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,77 @@
name: build
on: push
jobs:
make:
name: Make
runs-on: ubuntu-latest
env:
WATCOM: /opt/watcom
EDPATH: /opt/watcom/eddat
INCLUDE: /opt/watcom/h:/opt/watcom/lh
steps:
- name: Install build tools
run: sudo apt update && sudo apt install build-essential
- name: Download OpenWatcom
if: steps.cache.outputs.cache-hit != 'true'
run: |
rm -rf /opt/watcom
mkdir /opt/watcom
wget -qO- https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.gz | tar -xvz -C /opt/watcom
echo "/opt/watcom/binl64:/opt/watcom/binl" >> $GITHUB_PATH
- uses: actions/checkout@v2
- name: Build `cp437`
run: |
cd ${{ github.workspace }}/cp437
gcc cp437.c -o cp437
- name: Build `ac97`
run: |
cd ${{ github.workspace }}/ac97
wmake
- name: Build `acpi`
run: |
cd ${{ github.workspace }}/acpi
wmake
- name: Build `pcireg`
run: |
cd ${{ github.workspace }}/pcireg
wmake
make -f Makefile.uefi ARCH=x86_64
- uses: actions/upload-artifact@v2
with:
path: |
**/*.EXE
**/*.EFI
newbasic:
name: NewBasic
runs-on: windows-latest
steps:
- name: Download NewBasic assembler
run: |
Invoke-WebRequest http://www.fysnet.net/zips/nbasm.zip -OutFile nbasm.zip
Expand-Archive nbasm.zip -DestinationPath "$env:LOCALAPPDATA/Programs"
echo "$env:LOCALAPPDATA/Programs" >> $env:GITHUB_PATH
- uses: actions/checkout@v2
- name: Build `amikey`
run: |
cd ${{ github.workspace }}/amikey
./build.bat AMIKEY
./build.bat JETKEY
- name: Build `multikey`
run: |
cd ${{ github.workspace }}/multikey
./build.bat MULTIKEY
- name: Build `viakey`
run: |
cd ${{ github.workspace }}/viakey
./build.bat VIAKEY
- uses: actions/upload-artifact@v2
with:
path: "**/*.COM"

5
.gitignore vendored
View File

@@ -19,3 +19,8 @@ cp437/cp437.exe
# UEFI
NvVars
pci?????.bin
# Binaries
*.exe
*.com
*.efi

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -56,10 +56,10 @@ CFLAGS = -bt=$(SYSTEM) $(CFLAGS)
.c.obj
!if "$(CP437_CONV)" == "y"
..$(SLASH)cp437$(SLASH)$(CP437) $<
$(CC) $(CFLAGS) $<_cp437
$(CC) $(CFLAGS) $<_cp437 -fo=$*.obj
@$(DEL) $<_cp437
!else
$(CC) $(CFLAGS) $<
$(CC) $(CFLAGS) $< -fo=$*.obj
!endif
# Default target, which must be the first!

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.