Files
BeamMP-Server/.github/workflows/build-debian-11.yml
Lion Kortlepel d260563d99 try using debian
2023-12-05 13:19:28 +01:00

60 lines
1.5 KiB
YAML

name: Debian 11 Build
on: [push]
jobs:
debian-11-build:
runs-on: ubuntu-latest
container:
image: debian:11
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install Dependencies
run: sudo bash ./scripts/debian/1-install-deps.sh
- name: Create Build Environment
run: bash ${{github.workspace}}/scripts/debian/2-configure.sh
- name: Build Server
run: bash ${{github.workspace}}/scripts/debian/3-build.sh
- name: Build Tests
run: bash ${{github.workspace}}/scripts/debian/3-build-tests.sh
- name: Archive server artifact
uses: actions/upload-artifact@v2
with:
name: BeamMP-Server-linux
path: ${{github.workspace}}/bin/BeamMP-Server
- name: Archive test artifact
uses: actions/upload-artifact@v2
with:
name: BeamMP-Server-linux-tests
path: ${{github.workspace}}/bin/BeamMP-Server-tests
run-tests:
needs: linux-build
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@master
with:
name: BeamMP-Server-linux-tests
path: ${{github.workspace}}
- name: Install Runtime Dependencies
run: |
sudo apt update -y
sudo apt install -y liblua5.3-0
- name: Test
working-directory: ${{github.workspace}}
shell: bash
run: |
chmod +x ./BeamMP-Server-tests
./BeamMP-Server-tests