-
-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 1.22 KB
/
Copy pathLinux_package.yml
File metadata and controls
38 lines (36 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: linux package
on:
workflow_dispatch:
jobs:
package_Linux:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT_SUBMODULES }}
submodules: recursive
- name: Install OpenGL lib / Requirement for Glfw3
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev libx11-dev libxi-dev libxrandr-dev libxinerama-dev libxcursor-dev libwayland-dev
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build --config Release
- name: reconfigure
run: cmake -B build
- name: package
run: cmake --build build --config Release --target package
- name: extract version
id: ver
run: |
VERSION=$(grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' VERSION | head -n1)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: upload to draft release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.ver.outputs.version }}
name: ${{ steps.ver.outputs.version }}
draft: true
files: bin/packages/${{ github.event.repository.name }}_*