forked from kubilus1/autoortho-scenery
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 861 Bytes
/
test-main.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
name: Build test tileset
on:
push:
jobs:
ziplist:
runs-on: ubuntu-22.04
env:
DEBIAN_FRONTEND: noninteractive
TZ: America/NewYork
GH_TOKEN: ${{ github.token }}
outputs:
chunks: ${{ steps.chunks.outputs.chunks }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Gen tile sub-lists
id: chunks
run: |
TILENAME=test make -f Makefile.tiles test_tile_list_chunks
CHUNKS=$(ls test_tile_list.* | awk -F '.' '/.+/ { printf "%s\"z_test_%s.zip\"", sep, ""$2""; sep=", " }')
echo "chunks={\"chunk\":[$CHUNKS]}" >> $GITHUB_OUTPUT
call-build:
needs: ziplist
strategy:
matrix: ${{ fromJSON(needs.ziplist.outputs.chunks) }}
uses: ./.github/workflows/build-tiles.yml
with:
zip: ${{ matrix.chunk }}
setname: test