Browse Source

split clean and build steps in gh actions

Thomas B 1 month ago
parent
commit
cec57b3356
2 changed files with 6 additions and 3 deletions
  1. 4
    2
      .github/workflows/build.yml
  2. 2
    1
      .github/workflows/docs.yml

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

32
         working-directory: ${{github.workspace}}/repo
32
         working-directory: ${{github.workspace}}/repo
33
         shell: bash
33
         shell: bash
34
         run: |
34
         run: |
35
-          make GBDK_HOME=${{github.workspace}}/gbdk clean all -j $(nproc)
35
+          make clean
36
+          make GBDK_HOME=${{github.workspace}}/gbdk all -j $(nproc)
36
           mv duality.gb duality_debug.gb
37
           mv duality.gb duality_debug.gb
37
           mv build/duality.map duality_debug.map
38
           mv build/duality.map duality_debug.map
38
-          make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
39
+          make clean
40
+          make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 all -j $(nproc)
39
           mv build/duality.map duality.map
41
           mv build/duality.map duality.map
40
 
42
 
41
       - name: Upload a Build Artifact
43
       - name: Upload a Build Artifact

+ 2
- 1
.github/workflows/docs.yml View File

37
         working-directory: ${{github.workspace}}/repo
37
         working-directory: ${{github.workspace}}/repo
38
         shell: bash
38
         shell: bash
39
         run: |
39
         run: |
40
-          make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
40
+          make clean
41
+          make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 all -j $(nproc)
41
           DATE=$(date "+%Y_%m_%d_%H_%M_%S")
42
           DATE=$(date "+%Y_%m_%d_%H_%M_%S")
42
           cp duality.gb docs/duality.gb
43
           cp duality.gb docs/duality.gb
43
           cp duality.gb docs/duality_$DATE.gb
44
           cp duality.gb docs/duality_$DATE.gb

Loading…
Cancel
Save