-
Notifications
You must be signed in to change notification settings - Fork 32
70 lines (61 loc) · 2.76 KB
/
build-linux64.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
name: build-linux64
# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on: [push]
env:
ccache: ccache
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux64-platforms:
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
- {target: linux64, libs: 64gcc6}
env:
TARGET: ${{matrix.cfg.target}}
steps:
- name: Remove Old lib-unwind
run: if [ "$TARGET" = "linux64" ]; then
sudo apt-get remove libunwind-14 -y;
fi
- name: Cache Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: make curl libunwind-dev libjack-jackd2-0 libjack-jackd2-dev freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev libglew-dev libopenal-dev libsndfile1-dev libfreeimage-dev libcairo2-dev libfreetype6-dev libssl-dev libpulse-dev libusb-1.0-0-dev libgtk2.0-dev libopencv-dev libassimp-dev librtaudio-dev gdb libglfw3-dev liburiparser-dev libcurl4-openssl-dev libpugixml-dev libgconf-2-4 libgtk2.0-0 libpoco-dev libxcursor-dev libxi-dev libxinerama-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav gstreamer1.0-pulseaudio gstreamer1.0-x gstreamer1.0-plugins-bad gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good
version: 1.0
- name: checkout openframeworks
uses: actions/checkout@v4
with:
repository: openframeworks/openFrameworks
# now we add in ofxLaser as addon
- name: checkout ofxLaser
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/addons/ofxLaser
# and here we replace the empty example with the hello laser example
- name: remove emptyExample
run: rm -r ${{ github.workspace }}/examples/templates/emptyExample
- name: replace emptyExample with example_HelloLaser
run: cp -r ${{ github.workspace }}/addons/ofxLaser/example_HelloLaser ${{ github.workspace }}/examples/templates/emptyExample
# continue openframeworks defined pipeline
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh;
- name: Build
run: if [ "$TARGET" = "linux64" ]; then
scripts/ci/linux64/build.sh;
scripts/ci/$TARGET/run_tests.sh;
else
scripts/ci/$TARGET/build.sh;
fi
# - name: Upload Libs
# run: scripts/ci/upload_of_lib.sh;
# env:
# GA_CI_SECRET: ${{ secrets.CI_SECRET }}