-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (53 loc) · 1.5 KB
/
pak128-nightly.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
57
58
59
60
61
62
63
64
65
name: Nightly build Ubuntu
on: [push]
jobs:
compile_pak128-nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install_dependencies
# sudo apt-get -y update
run: |
sudo apt-get -ym install libpng-dev
sudo apt-get -ym install libsdl2-dev
sudo apt-get -ym install libbz2-dev
sudo apt-get -ym install autoconf
svn checkout svn://servers.simutrans.org/simutrans simutrans
- name: setup
run: |
cd simutrans/trunk
autoconf
./configure
cat config.default >>/dev/stderr
- name: make makeobj
run: |
cd simutrans/trunk/src/makeobj
make
mv makeobj ../../../..
cd ../../../..
rm -rf simutrans
- name: compile pakset
run: |
./text_import.sh
make
mv simupak128.zip simupak128-nightly.zip
- name: set environment
run: |
echo "date=$(date -u +%Y-%m-%d)" >> "$GITHUB_ENV"
- name: set current head to nightly
uses: richardsimko/update-tag@v1
with:
tag_name: Nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Serverset of Nightly Release
uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: Nightly
files: simupak128-nightly.zip
name: Nightly ${{ env.date }}
allow_override: true
gzip: false