Browse Source

fix path in cmake gh action

Thomas Buck 8 months ago
parent
commit
c62e5286b9
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      .github/workflows/cmake.yml

+ 7
- 7
.github/workflows/cmake.yml View File

30
         run: git submodule update --init
30
         run: git submodule update --init
31
 
31
 
32
       - name: Checkout pico-sdk submodules
32
       - name: Checkout pico-sdk submodules
33
-        working-directory: ${{github.workspace}}/repo/pico-sdk
33
+        working-directory: ${{github.workspace}}/repo/firmware/pico-sdk
34
         run: git submodule update --init
34
         run: git submodule update --init
35
 
35
 
36
       - name: Create Build Environment
36
       - name: Create Build Environment
37
-        working-directory: ${{github.workspace}}/repo
38
-        run:  cmake -E make_directory ${{github.workspace}}/repo/build
37
+        working-directory: ${{github.workspace}}/repo/firmware
38
+        run:  cmake -E make_directory ${{github.workspace}}/repo/firmware/build
39
 
39
 
40
       - name: Configure CMake
40
       - name: Configure CMake
41
         shell: bash
41
         shell: bash
42
-        working-directory: ${{github.workspace}}/repo/build
42
+        working-directory: ${{github.workspace}}/repo/firmware/build
43
         run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
43
         run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
44
 
44
 
45
       - name: Get core count
45
       - name: Get core count
47
         run : cat /proc/cpuinfo  | grep processor | wc -l
47
         run : cat /proc/cpuinfo  | grep processor | wc -l
48
 
48
 
49
       - name: Build
49
       - name: Build
50
-        working-directory: ${{github.workspace}}/repo/build
50
+        working-directory: ${{github.workspace}}/repo/firmware/build
51
         shell: bash
51
         shell: bash
52
         run: cmake --build . --config $BUILD_TYPE --parallel $(nproc)
52
         run: cmake --build . --config $BUILD_TYPE --parallel $(nproc)
53
 
53
 
55
         uses: actions/upload-artifact@v4.0.0
55
         uses: actions/upload-artifact@v4.0.0
56
         with:
56
         with:
57
           name: dispensy.uf2
57
           name: dispensy.uf2
58
-          path: ${{github.workspace}}/repo/build/dispensy.uf2
58
+          path: ${{github.workspace}}/repo/firmware/build/dispensy.uf2
59
           if-no-files-found: error
59
           if-no-files-found: error
60
 
60
 
61
       - name: Upload release files
61
       - name: Upload release files
62
         if: startsWith(github.ref, 'refs/tags/')
62
         if: startsWith(github.ref, 'refs/tags/')
63
         uses: softprops/action-gh-release@v1
63
         uses: softprops/action-gh-release@v1
64
         with:
64
         with:
65
-          files: ${{github.workspace}}/repo/build/dispensy.uf2
65
+          files: ${{github.workspace}}/repo/firmware/build/dispensy.uf2

Loading…
Cancel
Save