-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (59 loc) · 1.94 KB
/
build.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
name: Build-App
on:
push:
paths-ignore:
- README.md
- _site/*
- ".github/workflows/website.yml"
jobs:
build-linux:
name: Build App for Linux x64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install cmake g++ gcc ninja-build libgtk-3-dev libfuse2 -y --no-install-recommends
- name: Build
run: mkdir -p build; cd build; cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release .. && cmake --build . --config release --target install
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: FatFileFinder_linux64
path: build/Release/*.AppImage
build-mac:
name: Build App for macOS
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: mkdir -p build; cd build; cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release .. && cmake --build . --config Release --target install
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: FatFileFinder_macOS
path: build/release/*.app
build-windows:
name: Build App for Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x64, ARM64]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: mkdir build; cd build; cmake -A${{ matrix.arch }} -DCMAKE_BUILD_TYPE=Release .. ; cmake --build . --config release --target install
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: FatFileFinder_win${{ matrix.arch }}
path: build\release\*.exe