]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Added CI build on commits, PRs or manual trigger
authorDimitris Panokostas <midwan@gmail.com>
Tue, 18 Jun 2024 19:45:33 +0000 (21:45 +0200)
committerDimitris Panokostas <midwan@gmail.com>
Tue, 18 Jun 2024 19:45:33 +0000 (21:45 +0200)
.github/workflows/build-winuae-binary.yml [new file with mode: 0644]

diff --git a/.github/workflows/build-winuae-binary.yml b/.github/workflows/build-winuae-binary.yml
new file mode 100644 (file)
index 0000000..e6f907f
--- /dev/null
@@ -0,0 +1,79 @@
+name: Build WinUAE binary
+
+on:
+  workflow_dispatch:
+  push:
+    branches: 
+      - master
+  pull_request:
+    branches:
+      - master
+    inputs:
+      Configuration:
+        descripion: "Type of binary build"
+        required: true
+        default: "Test"
+        type: choice
+        options:
+        - Release
+        - Test
+        - FullRelease
+      Platform:
+        description: "Platform to build for"
+        required: true
+        default: "Win32"
+        type: choice
+        options:
+        - Win32
+        - x64
+
+env:
+  SOLUTION_FILE_PATH: od-win32\\winuae_msvc15
+
+jobs:
+  Build-WinUAE-binary:
+    runs-on: windows-latest
+
+    steps:
+    - uses: actions/checkout@v4
+
+    - name: Add MSBuild to PATH
+      uses: microsoft/setup-msbuild@v2.0.0
+
+    # Running roughly step 4 of README.md
+    - name: Download WinUAE includes and libs
+      shell: powershell
+      run: Invoke-WebRequest -Uri "https://download.abime.net/winuae/files/b/winuaeinclibs.zip" -OutFile "winuaeinclibs.zip"
+
+    - name: Unpack WinUAE includes and libs to C:\\dev
+      uses: ihiroky/extract-action@v1
+      with:
+        file_path: winuaeinclibs.zip
+        extract_dir: C:\\dev
+
+    # Running roughly step 6 of README.md
+    - name: Download AROS ROM cpp
+      shell: powershell
+      run: Invoke-WebRequest -Uri "https://download.abime.net/winuae/files/b/aros.rom.cpp.zip" -OutFile "aros.rom.cpp.zip"
+
+    - name: Unpack AROS ROM cpp
+      uses: ihiroky/extract-action@v1
+      with:
+        file_path: aros.rom.cpp.zip
+        extract_dir: .
+
+    # Running roughly step 7 of README.md
+    - name: Add NASM to PATH
+      uses: ilammy/setup-nasm@v1.5.1
+
+    # Running roughly step 12 of README.md
+    - name: Build ${{ inputs.Platform }} ${{ inputs.Configuration }}
+      working-directory: ${{env.GITHUB_WORKSPACE}}
+      # Add additional options to the MSBuild command line here (like platform or verbosity level).
+      # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
+      run: msbuild /m /p:Platform=${{ inputs.Platform }} /p:Configuration=${{ inputs.Configuration }} ${{env.SOLUTION_FILE_PATH}}
+
+    - uses: actions/upload-artifact@v4
+      with:
+        name: WinUAE ${{ inputs.Platform }} ${{ inputs.Configuration }}
+        path: D:\\Amiga
\ No newline at end of file