Wip some more #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |