-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (45 loc) · 1.67 KB
/
release_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
name: 'build Linux release'
on:
workflow_run:
workflows: ["create GitHub release"]
types: [completed]
jobs:
linux:
permissions:
contents: write
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- tool: nope-viewer
tool_fullname: NopeViewer
- tool: nope-diff
tool_fullname: NopeDiff
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt -y update
#
# python3-venv is required to prevent the following issue:
# The virtual environment was not created successfully because ensurepip is not
# available. On Debian/Ubuntu systems, you need to install the python3-venv
# package using the following command.
#
# apt-get install python3-venv
#
sudo apt -y install libsdl2-dev libva-dev python3-venv spirv-tools glslang-dev libvulkan-dev mesa-vulkan-drivers vulkan-validationlayers
sudo apt -y install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev
sudo apt -y install libfreetype-dev libharfbuzz-dev libfribidi-dev
sudo apt -y install fuse
- name: Build
run: |
scripts/appimage/build.sh ${{ matrix.tool }}
- name: Upload AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
output_file="appimage/${{ matrix.tool_fullname }}-$(cat VERSION)-x86_64.AppImage"
mv appimage/${{ matrix.tool_fullname }}-x86_64.AppImage $output_file
gh release upload v$(cat VERSION) $output_file