-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.38 KB
/
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
name: Linux Builds
on: push
jobs:
debian_based:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- image: debian:11
name: debian_11
- image: debian:12
name: debian_12
- image: ubuntu:20.04
name: ubuntu_20.04
- image: ubuntu:22.04
name: ubuntu_22.04
container: ${{ matrix.image }}
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
- name: Install packages required for build
run: |
apt-get update && apt-get upgrade -y
apt-get install -y fp-compiler fp-units-gfx
apt-get install -y freeglut3 || apt-get install -y libglut3.12
- name: Build
shell: bash
run: |
cd $GITHUB_WORKSPACE
cd engine
fpc -S2 vespucci.dpr
- name: Collect build artifacts
shell: bash
run: |
cd $GITHUB_WORKSPACE
mkdir artifacts
cp engine/vespucci artifacts/
cp -R engine/data artifacts/data
cp LICENSE artifacts/
cp readme.md artifacts/
cp changelog.md artifacts/
cp known_bugs.md artifacts/
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: vespucci-build-artifacts-${{ matrix.name }}
path: |
artifacts/*