-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (46 loc) · 1.61 KB
/
ci_build.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
51
52
53
54
55
56
# preforms CI builds using compose.py from
# https://github.com/CleverRaven/Cataclysm-DDA
#
# This action is triggerd by any PR against the master branch as well
# as on any push to the master branch itself
name: Cuteclysm composer
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: CI Build
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: musl python3 python3-pip libvips42
# re-installing libvips; caching it won't set it up the way we need it
# still cache it because we'll make it work somehow
- run: sudo apt-get install libvips42
- run: pip3 install pyvips
- name: Checkout Code
uses: actions/checkout@v2
- name: Build
id: build
run: |
wget -q https://raw.githubusercontent.com/CleverRaven/Cataclysm-DDA/master/tools/gfx_tools/compose.py \
|| echo "Error: Failed to get compose.py"
mkdir build
python3 compose.py --use-all --feedback CONCISE --loglevel INFO . build
artifact_name=Cuteclysm-dev-git-${GITHUB_SHA::7}
mkdir "$artifact_name"
cp -r build/* "$artifact_name"
mv ./tileset.txt "$artifact_name"
mv ./fallback.png "$artifact_name"
echo "ARTIFACT-NAME=$artifact_name" >> $GITHUB_OUTPUT
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ steps.build.outputs.ARTIFACT-NAME }}
path: ${{ steps.build.outputs.ARTIFACT-NAME }}