Skip to content

Commit f3f62e2

Browse files
authored
Add: [Actions] test if the repository builds successful (#16)
1 parent 19a3c27 commit f3f62e2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/testing.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build OpenGFX
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Checkout tags
19+
uses: openttd/actions/checkout@v1
20+
with:
21+
with-tags: true
22+
- name: Set up Python 3.8
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: 3.8
26+
- name: Install dependencies
27+
run: |
28+
sudo apt install -y gimp grfcodec --no-install-recommends
29+
python -m pip install --upgrade pip
30+
# TODO -- If nml has a new release (higher than 0.4.5), this can just be 'pip install nml'
31+
python -m pip install https://github.com/OpenTTD/nml/archive/master.zip
32+
- name: Build
33+
run: |
34+
# Current Makefile first includes these files before generating them.
35+
# This generates warnings. To work around that, generate these files
36+
# first for now.
37+
make Makefile.vcs Makefile.gfx
38+
make

0 commit comments

Comments
 (0)