diff --git a/.github/workflows/build-tiles.yml b/.github/workflows/build-tiles.yml index f84ee7d..ab79329 100644 --- a/.github/workflows/build-tiles.yml +++ b/.github/workflows/build-tiles.yml @@ -42,15 +42,15 @@ jobs: - name: Test run: | - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.setname }}_tile_list_chunks - TILENAME=${{ inputs.setname }} make -n -f Makefile.tiles ${{ inputs.zip }} + TILENAME=${{ inputs.setname }} make ${{ inputs.setname }}_tile_list_chunks + TILENAME=${{ inputs.setname }} make -n ${{ inputs.zip }} - name: Build id: build run: | - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.setname }}_tile_list_chunks - TILENAME=${{ inputs.setname }} timeout 300m make -f Makefile.tiles ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" - TILENAME=${{ inputs.tileset }} make -f Makefile.tiles ${{ inputs.zip }}.sha256 + TILENAME=${{ inputs.setname }} make ${{ inputs.setname }}_tile_list_chunks + TILENAME=${{ inputs.setname }} timeout 300m make ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" + TILENAME=${{ inputs.tileset }} make ${{ inputs.zip }}.sha256 - name: Show work if: steps.build.outputs.done == 'true' @@ -59,7 +59,7 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY #unzip -l ${{ inputs.zip }} *.dsf >> $GITHUB_STEP_SUMMARY echo "COMPLETED?: ${{ steps.build.outputs.done }}" >> $GITHUB_STEP_SUMMARY - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY + TILENAME=${{ inputs.setname }} make ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY echo '---' >> $GITHUB_STEP_SUMMARY @@ -121,9 +121,9 @@ jobs: - name: ReBuild1 id: rebuild run: | - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.setname }}_tile_list_chunks - TILENAME=${{ inputs.setname }} timeout 300m make -f Makefile.tiles ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" - TILENAME=${{ inputs.tileset }} make -f Makefile.tiles ${{ inputs.zip }}.sha256 + TILENAME=${{ inputs.setname }} make ${{ inputs.setname }}_tile_list_chunks + TILENAME=${{ inputs.setname }} timeout 300m make ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" + TILENAME=${{ inputs.tileset }} make ${{ inputs.zip }}.sha256 - name: Show work if: steps.rebuild.outputs.done == 'true' @@ -132,7 +132,7 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY #unzip -l ${{ inputs.zip }} *.dsf >> $GITHUB_STEP_SUMMARY echo "COMPLETED?: ${{ steps.rebuild.outputs.done }}" >> $GITHUB_STEP_SUMMARY - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY + TILENAME=${{ inputs.setname }} make ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY echo '---' >> $GITHUB_STEP_SUMMARY @@ -194,9 +194,9 @@ jobs: - name: ReBuild2 id: rebuild run: | - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.setname }}_tile_list_chunks - TILENAME=${{ inputs.setname }} timeout 300m make -f Makefile.tiles ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" - TILENAME=${{ inputs.tileset }} make -f Makefile.tiles ${{ inputs.zip }}.sha256 + TILENAME=${{ inputs.setname }} make ${{ inputs.setname }}_tile_list_chunks + TILENAME=${{ inputs.setname }} timeout 300m make ${{ inputs.zip }}.info && echo "done=true" >> "$GITHUB_OUTPUT" || echo "done=false" >> "$GITHUB_OUTPUT" + TILENAME=${{ inputs.tileset }} make ${{ inputs.zip }}.sha256 - name: Show work if: steps.rebuild.outputs.done == 'true' @@ -205,7 +205,7 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY #unzip -l ${{ inputs.zip }} *.dsf >> $GITHUB_STEP_SUMMARY echo "COMPLETED?: ${{ steps.rebuild.outputs.done }}" >> $GITHUB_STEP_SUMMARY - TILENAME=${{ inputs.setname }} make -f Makefile.tiles ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY + TILENAME=${{ inputs.setname }} make ${{ inputs.zip }}.info >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY echo '---' >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 7c2d35f..fbc63ca 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -37,7 +37,7 @@ jobs: - name: Gen tile sub-lists id: chunks run: | - TILENAME=${{ inputs.tileset }} make -f Makefile.tiles ${{ inputs.tileset }}_tile_list_chunks + TILENAME=${{ inputs.tileset }} make ${{ inputs.tileset }}_tile_list_chunks CHUNKS=$(ls ${{ inputs.tileset }}_tile_list.* | awk -F '.' '/.+/ { printf "%s\"z_${{ inputs.tileset }}_%s.zip\"", sep, ""$2""; sep=", " }') #CHUNKS=$(ls ${{ inputs.tileset }}_tile_list.* | awk -v ORS=',' '{print $1}') echo "chunks={\"chunk\":[$CHUNKS]}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/run-one-tile.yml b/.github/workflows/run-one-tile.yml index a0ce1e3..fd7c673 100644 --- a/.github/workflows/run-one-tile.yml +++ b/.github/workflows/run-one-tile.yml @@ -30,7 +30,7 @@ jobs: - name: Build id: build run: | - timeout 20m make -f Makefile.tiles z_aosingle_${{ inputs.tile }}.zip + timeout 20m make z_aosingle_${{ inputs.tile }}.zip - name: Upload artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/test-main.yml b/.github/workflows/test-main.yml index 7c0e5ab..c03097d 100644 --- a/.github/workflows/test-main.yml +++ b/.github/workflows/test-main.yml @@ -19,7 +19,7 @@ jobs: - name: Gen tile sub-lists id: chunks run: | - TILENAME=test make -f Makefile.tiles test_tile_list_chunks + TILENAME=test make 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 diff --git a/Makefile.tiles b/Makefile similarity index 97% rename from Makefile.tiles rename to Makefile index 4cb5ccc..012a0b0 100644 --- a/Makefile.tiles +++ b/Makefile @@ -3,12 +3,12 @@ # Quick start: # Generate tile set: # export TILENAME=test # or na, afr, eur, ... -# make -f Makefile.tiles clean -# make -f Makefile.tiles ${TILENAME}_tile_list_chunks -# make -f Makefile.tiles -j $(nproc --ignore=2) +# make clean +# make ${TILENAME}_tile_list_chunks +# make -j $(nproc --ignore=2) # # Generate single tile: -# make -f Makefile.tiles z_ao__single_+78+015.zip +# make z_ao__single_+78+015.zip # remove make builtin rules for more useful make -d MAKEFLAGS += --no-builtin-rules