diff --git a/.github/workflows/gui.yml b/.github/workflows/packaging.yml similarity index 65% rename from .github/workflows/gui.yml rename to .github/workflows/packaging.yml index 8b92623..e42e6f0 100644 --- a/.github/workflows/gui.yml +++ b/.github/workflows/packaging.yml @@ -1,4 +1,4 @@ -name: gui +name: packaging on: workflow_dispatch: @@ -20,7 +20,7 @@ jobs: name: Install Dependencies run: | sudo apt-get update - sudo apt-get install -y xorg-dev freeglut3-dev + sudo apt-get install -y xorg-dev libgl1-mesa-dev - name: Configure CMake run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPICROSS_BUILD_CLI=ON -DPICROSS_BUILD_APP=ON @@ -32,3 +32,14 @@ jobs: - name: Version working-directory: ${{ github.workspace }}/build run: cmake --build . --target picross_cli_version --config ${{ matrix.build_type }} + + - name: Install + working-directory: ${{ github.workspace }}/build + run: cmake --install . --config ${{ matrix.build_type }} --prefix install + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: package-${{ matrix.os }}-${{ matrix.build_type }} + path: ${{ github.workspace }}/build/install + retention-days: 6