Browse Source

archive debug and release builds in gh action

Thomas B 1 month ago
parent
commit
962b42f757
1 changed files with 12 additions and 4 deletions
  1. 12
    4
      .github/workflows/build.yml

+ 12
- 4
.github/workflows/build.yml View File

@@ -31,17 +31,25 @@ jobs:
31 31
       - name: Build
32 32
         working-directory: ${{github.workspace}}/repo
33 33
         shell: bash
34
-        run: make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
34
+        run: |
35
+          make GBDK_HOME=${{github.workspace}}/gbdk clean all -j $(nproc)
36
+          mv duality.gb duality_debug.gb
37
+          mv build/duality.map duality_debug.map
38
+          make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
39
+          mv build/duality.map duality.map
35 40
 
36 41
       - name: Upload a Build Artifact
37 42
         uses: actions/upload-artifact@v4.0.0
38 43
         with:
39
-          name: duality.gb
40
-          path: ${{github.workspace}}/repo/duality.gb
44
+          path: ${{github.workspace}}/repo/duality*
41 45
           if-no-files-found: error
42 46
 
43 47
       - name: Upload release files
44 48
         if: startsWith(github.ref, 'refs/tags/')
45 49
         uses: softprops/action-gh-release@v1
46 50
         with:
47
-          files: ${{github.workspace}}/repo/duality.gb
51
+          files: |
52
+            ${{github.workspace}}/repo/duality.gb
53
+            ${{github.workspace}}/repo/duality.map
54
+            ${{github.workspace}}/repo/duality_debug.gb
55
+            ${{github.workspace}}/repo/duality_debug.map

Loading…
Cancel
Save