-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (61 loc) · 1.97 KB
/
build-ubuntu.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: build ubuntu
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-program:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Move to the parent directory and fetch dependencies
- name: Fetch dependencies
run: |
cd ..
mkdir lib
cd lib
git clone https://github.com/razterizer/Core.git
git clone https://github.com/razterizer/Termin8or.git
git clone https://github.com/razterizer/8Beat.git
git clone https://github.com/razterizer/AudioLibSwitcher_OpenAL.git --recurse-submodules
git clone https://github.com/razterizer/TrainOfThought.git
# Step 3: Install OpenAL
- name: Install OpenAL
run: sudo apt install libopenal-dev
# Step 4: Change to the correct directory and build
- name: Build project
run: |
cd Pilot_Episode
./build.sh
continue-on-error: false # Ensure errors are not bypassed
# Run program
- name: Run program
if: false
run: |
cd Pilot_Episode
./bin/pilot_episode
build-program-with-locked-dependencies:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Move to the parent directory and fetch dependencies
- name: Fetch dependencies
run: |
cd ..
./Pilot_Episode/fetch-dependencies.py Pilot_Episode/dependencies -y
# Step 3: Install OpenAL
- name: Install OpenAL
run: sudo apt install libopenal-dev
# Step 4: Change to the correct directory and build
- name: Build project
run: |
cd Pilot_Episode
./build.sh
continue-on-error: false # Ensure errors are not bypassed