-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (59 loc) · 2.04 KB
/
Ubuntu - Aether 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
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Ubuntu Aether build
on:
#push:
#branches: [ "main" ]
#pull_request:
#branches: [ "main" ]
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
defaults:
run:
shell: bash
jobs:
build_aether:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: FFTW Cache
uses: actions/cache@v3
with:
path: builds/fftw
key: ${{ runner.os }}-cache-key-fftw
- name: WX Cache
uses: actions/cache@v3
with:
path: builds/wxWidgets
key: ${{ runner.os }}-cache-key-wx
- run: sudo apt-get update
- run: sudo apt install libeigen3-dev
# - run: sudo apt install libfftw3-3
# - run: sudo apt install libfftw3-dev
- run: sudo apt install liblua5.4-dev
- run: sudo apt install zlib1g-dev
- run: sudo apt install libpng-dev
- run: sudo apt install libfreetype-dev
- run: sudo apt install libwxgtk3.0-gtk3-dev --fix-missing
# - name: 'Upload built dependencies'
# uses: actions/upload-artifact@v3
# with:
# name: linux_dependencies
# path: builds
# retention-days: 1
- name: Configure CMake
run: cmake -B "${{github.workspace}}/cmake_build" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DINSTALL_PATH="Aether_build" -DTASK="Build CLI+GUI" -DFFTW_INCLUDES="${{github.workspace}}/builds/fftw/include" -DFFTW_LIB="${{github.workspace}}/builds/fftw/lib/libfftw3.a" -DCPACK_BINARY_7Z=ON
- name: Build
run: cmake --build "${{github.workspace}}/cmake_build" --config ${{env.BUILD_TYPE}} --parallel 8
- name: Install
run: cmake --install "${{github.workspace}}/cmake_build"
- name: Packaging
run: cpack
working-directory: "${{github.workspace}}/cmake_build"
- run: ls cmake_build
- name: 'Upload Aether Artifact'
uses: actions/upload-artifact@v3
with:
name: Aether_ubuntu
path: cmake_build/Aether*
retention-days: 1