-
-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (60 loc) · 2.02 KB
/
linux.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Linux
on:
push:
paths-ignore:
- '**.md'
- 'docs/**'
- 'extras/images/**'
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Linux 64",
os: "ubuntu-latest",
target: "linux",
cef_platform: "linux64",
}
steps:
- uses: actions/checkout@v2
- name: System dependencies
run: sudo apt-get install build-essential libgtk2.0-dev libgtkglext1-dev
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Upgrade PIP
run: python3 -m pip install --upgrade pip setuptools wheel
- name: Display Python version
run: python3 --version
- name: Display PIP version
run: python3 -m pip --version
- name: Python requirements
run: python3 -m pip install -r requirements.txt
- name: Install CMake
uses: jwlawson/actions-setup-cmake@v1.8
with:
cmake-version: "3.24.0"
- name: Build
run: |
cmake -E make_directory build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCEF_PLATFORM=${{ matrix.config.cef_platform }}
cmake --build build --target MyApp --config Release -v
- name: Pack
run: python3 -m tarfile -c ../${{ matrix.config.target }}-${{ matrix.config.cef_platform }}.tar.gz Release
working-directory: build
- name: Upload
uses: actions/upload-artifact@v2
with:
name: artifact-${{ matrix.config.target }}-${{ matrix.config.cef_platform }}
path: ${{ matrix.config.target }}-${{ matrix.config.cef_platform }}.tar.gz
- name: Release
id: upload-release-asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.config.target }}-${{ matrix.config.cef_platform }}.tar.gz