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
       - name: Build
31
       - name: Build
32
         working-directory: ${{github.workspace}}/repo
32
         working-directory: ${{github.workspace}}/repo
33
         shell: bash
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
       - name: Upload a Build Artifact
41
       - name: Upload a Build Artifact
37
         uses: actions/upload-artifact@v4.0.0
42
         uses: actions/upload-artifact@v4.0.0
38
         with:
43
         with:
39
-          name: duality.gb
40
-          path: ${{github.workspace}}/repo/duality.gb
44
+          path: ${{github.workspace}}/repo/duality*
41
           if-no-files-found: error
45
           if-no-files-found: error
42
 
46
 
43
       - name: Upload release files
47
       - name: Upload release files
44
         if: startsWith(github.ref, 'refs/tags/')
48
         if: startsWith(github.ref, 'refs/tags/')
45
         uses: softprops/action-gh-release@v1
49
         uses: softprops/action-gh-release@v1
46
         with:
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