-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1 KB
/
debian-package.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
name: Create Debian Package
on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- buildjet-4vcpu-ubuntu-2204
- buildjet-8vcpu-ubuntu-2204-arm
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build in container
run: docker build -f ${{github.workspace}}/Dockerfile . --target package -t temp-image
- name: Build temp container
run: docker create --name temp-container temp-image
- name: Copy Package
run: mkdir ${{github.workspace}}/package/ && docker cp temp-container:/package/ ${{github.workspace}}/
- name: Save artifact
uses: actions/upload-artifact@v4
with:
name: creature-server-package-${{ matrix.os }}
path: ${{github.workspace}}/package/