-
Notifications
You must be signed in to change notification settings - Fork 21
50 lines (41 loc) · 1.2 KB
/
build.yaml
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: Build
on: [push, pull_request]
jobs:
build-bam:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
include:
- name: "Ubuntu-Latest x86_64"
os: ubuntu-latest
package-full-file: ninslash-linux_x86_64-release.tar.xz
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Checkout bam
uses: actions/checkout@v4
with:
repository: matricks/bam
ref: 8cd08744c37666830d439ab54016c9d228c63b68
path: ./bam
- name: Prepare Linux
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y
sudo apt-get install bam libsdl2-dev python3 libicu-dev -y
- name: Build in debug mode
run: bam debug
- name: Build in release mode
run: bam release
- name: Package Release
if: contains(matrix.os, 'ubuntu')
run: |
tar -cf ${{ matrix.package-full-file }} ninslash_srv ninslash data cfg storage.cfg license.txt autoexec.cfg
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.package-full-file }}