Skip to content

Commit

Permalink
CI: Packaging github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-dejoue committed Aug 13, 2023
1 parent 4d49f8b commit b877d29
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/gui.yml → .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: gui
name: packaging

on:
workflow_dispatch:
Expand All @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions cmake/third_party/glfw.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ FetchContent_Declare(
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(GLFW_INSTALL OFF CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(glfw)

0 comments on commit b877d29

Please sign in to comment.