Skip to content

Commit 41dca09

Browse files
committed
Add final build and upload step
Now I can test this on Linux to make sure the build works
1 parent 8d96128 commit 41dca09

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/pluginbuild.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
LIBFREENECT_PATH: ${{ github.workspace }}/libfreenect2
1212
BUILD_PATH: ${{ github.workspace }}/build
1313
INSTALL_PATH: ${{ github.workspace }}/build/Install
14-
ARCHIVE_NAME: Kinect-${{ matrix.name }}.zip
1514
steps:
1615
- name: Checkout Kinect
1716
uses: actions/checkout@v3
@@ -76,7 +75,20 @@ jobs:
7675
shell: bash
7776
working-directory: ${{ env.BUILD_PATH }}
7877
run: cmake .. -DCMAKE_BUILD_TYPE='Release' -DSC_PATH="$SC_PATH" -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH"
79-
- name: Build Project
78+
- name: Build Plugin
8079
shell: bash
8180
working-directory: ${{ env.BUILD_PATH }}
82-
run: cmake --build . --config Release --parallel $(nproc)
81+
env:
82+
CMAKE_BUILD_PARALLEL_LEVEL: 4
83+
run: cmake --build . --config "Release" --target install
84+
- name: Create Archive
85+
shell: bash
86+
working-directory: ${{ env.BUILD_PATH }}
87+
run: |
88+
mkdir -p ${{ env.BUILD_PATH }}/archive
89+
zip -r ${{ env.BUILD_PATH }}/archive/Kinect-${{ runner.os }}.zip ${{ env.INSTALL_PATH }}
90+
- name: Upload Archive
91+
uses: actions/upload-artifact@v3
92+
with:
93+
name: Kinect-${{ runner.os }}.zip
94+
path: ${{ env.BUILD_PATH }}/archive/Kinect-${{ runner.os }}.zip

0 commit comments

Comments
 (0)