Browse Source

fix path in cmake gh action

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

Loading…
Cancel
Save